Skip to main content

PeerStore

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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§