Trait darkfi::rpc::p2p_method::HandlerP2p

source ·
pub trait HandlerP2p: Sync + Send {
    // Required method
    fn p2p(&self) -> P2pPtr;

    // Provided method
    fn p2p_get_info<'life0, 'async_trait>(
        &'life0 self,
        id: u16,
        _params: JsonValue,
    ) -> Pin<Box<dyn Future<Output = JsonResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

source

fn p2p(&self) -> P2pPtr

Provided Methods§

source

fn p2p_get_info<'life0, 'async_trait>( &'life0 self, id: u16, _params: JsonValue, ) -> Pin<Box<dyn Future<Output = JsonResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§