pub trait SyncStatusProvider<Block: BlockT>: Send + Sync {
    // Required method
    fn status<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<SyncStatus<Block>, ()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: '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 Self: 'async_trait, 'life0: '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: ?Sized + SyncStatusProvider<Block>, Block: BlockT,

source§

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

Implementors§