Trait sc_network::SyncStatusProvider

source ·
pub trait SyncStatusProvider<Block>: Send + Sync
where Block: Block,
{ // Required method fn status<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<SyncStatus<Block>, ()>> + Send + 'async_trait>> where 'life0: 'async_trait, Self: 'async_trait; }
Expand description

Provides high-level status of syncing.

Required Methods§

source

fn status<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<SyncStatus<Block>, ()>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Get high-level view of the syncing status.

Implementations on Foreign Types§

source§

impl<T, Block> SyncStatusProvider<Block> for Arc<T>
where T: SyncStatusProvider<Block> + ?Sized, Block: Block,

source§

fn status<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<SyncStatus<Block>, ()>> + Send + 'async_trait>>
where 'life0: 'async_trait, Arc<T>: 'async_trait,

Implementors§