NodeInfoAccessor

Trait NodeInfoAccessor 

Source
pub trait NodeInfoAccessor: Send + Sync {
    // Required method
    fn node_infos<'life0, 'async_trait>(
        &'life0 self,
        node_info_type: NodeInfoType,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<(u64, NodeInfo)>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for types that can access node info.

Required Methods§

Source

fn node_infos<'life0, 'async_trait>( &'life0 self, node_info_type: NodeInfoType, ) -> Pin<Box<dyn Future<Output = Result<Vec<(u64, NodeInfo)>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Returns the peer id and node info.

Implementors§