pub trait NetworkStatusProvider<Block>where
    Block: Block,
{ fn status<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<NetworkStatus<Block>, ()>> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

Provides high-level status information about network.

Required Methods§

source

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

High-level network status information.

Returns an error if the NetworkWorker is no longer running.

Implementations on Foreign Types§

source§

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

source§

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

Implementors§

source§

impl<B, H> NetworkStatusProvider<B> for NetworkService<B, H>where
    B: BlockT + 'static,
    H: ExHashT,