Struct fuel_relayer::RelayerSynced
source · 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 more