sui_network::discovery

Trait Discovery

Source
pub trait Discovery:
    Send
    + Sync
    + 'static {
    // Required method
    fn get_known_peers_v2<'life0, 'async_trait>(
        &'life0 self,
        request: Request<()>,
    ) -> Pin<Box<dyn Future<Output = Result<Response<GetKnownPeersResponseV2>, Status>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Generated trait containing RPC methods that should be implemented for use with DiscoveryServer.

Required Methods§

Source

fn get_known_peers_v2<'life0, 'async_trait>( &'life0 self, request: Request<()>, ) -> Pin<Box<dyn Future<Output = Result<Response<GetKnownPeersResponseV2>, Status>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§