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§