Trait sc_network::service::traits::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§
sourcefn handle(&self) -> Arc<dyn PeerStoreProvider>
fn handle(&self) -> Arc<dyn PeerStoreProvider>
Get handle to PeerStore
.