sc_network::service::traits

Trait PeerStore

Source
pub trait PeerStore {
    // Required methods
    fn handle(&self) -> Arc<dyn PeerStoreProvider>;
    fn run<'async_trait>(
        self,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait;
}
Expand description

Trait defining required functionality from PeerStore.

Required Methods§

Source

fn handle(&self) -> Arc<dyn PeerStoreProvider>

Get handle to PeerStore.

Source

fn run<'async_trait>( self, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait,

Start running PeerStore event loop.

Implementors§