Trait fuel_core_producer::ports::Relayer
source · pub trait Relayer: Send + Sync {
// Required method
fn wait_for_at_least<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight
) -> Pin<Box<dyn Future<Output = Result<DaBlockHeight>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
Required Methods§
sourcefn wait_for_at_least<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight
) -> Pin<Box<dyn Future<Output = Result<DaBlockHeight>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn wait_for_at_least<'life0, 'life1, 'async_trait>( &'life0 self, height: &'life1 DaBlockHeight ) -> Pin<Box<dyn Future<Output = Result<DaBlockHeight>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Wait for the relayer to reach at least this height and return the latest height (which is guaranteed to be >= height).