Trait aleph_client::waiting::WaitingExt
source · pub trait WaitingExt {
// Required methods
fn wait_for_n_sessions<'life0, 'async_trait>(
&'life0 self,
n: SessionIndex,
status: BlockStatus
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn wait_for_n_eras<'life0, 'async_trait>(
&'life0 self,
n: EraIndex,
status: BlockStatus
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}
Expand description
nWaiting from the current moment of time API
Required Methods§
sourcefn wait_for_n_sessions<'life0, 'async_trait>(
&'life0 self,
n: SessionIndex,
status: BlockStatus
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wait_for_n_sessions<'life0, 'async_trait>( &'life0 self, n: SessionIndex, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Wait for a given number of sessions to wait from a current session.
n
- number of sessions to wait from now
status
- aBlockStatus
of the session we wait for
sourcefn wait_for_n_eras<'life0, 'async_trait>(
&'life0 self,
n: EraIndex,
status: BlockStatus
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn wait_for_n_eras<'life0, 'async_trait>( &'life0 self, n: EraIndex, status: BlockStatus ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,
Wait for a given number of eras to wait from a current era.
n
- number of eras to wait from now
status
- aBlockStatus
of the era we wait for