pub struct RelayerSynced { /* private fields */ }
Expand description
Receives signals when the relayer reaches consistency with the DA layer.
Implementations§
Source§impl RelayerSynced
impl RelayerSynced
Sourcepub async fn await_synced(&self) -> Result<()>
pub async fn await_synced(&self) -> Result<()>
Wait for the [Relayer
] to be in sync with
the data availability layer.
Yields until the relayer reaches a point where it considered up to date. Note that there’s no guarantee the relayer will ever catch up to the da layer and may fall behind immediately after this future completes.
The only guarantee is that if this future completes then the relayer did reach consistency with the da layer for some period of time.
Trait Implementations§
Source§impl Clone for RelayerSynced
impl Clone for RelayerSynced
Source§fn clone(&self) -> RelayerSynced
fn clone(&self) -> RelayerSynced
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for RelayerSynced
impl !RefUnwindSafe for RelayerSynced
impl Send for RelayerSynced
impl Sync for RelayerSynced
impl Unpin for RelayerSynced
impl !UnwindSafe for RelayerSynced
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more