CmdNodeTunnelFactory

Trait CmdNodeTunnelFactory 

Source
pub trait CmdNodeTunnelFactory<M: CmdTunnelMeta, R: CmdTunnelRead<M>, W: CmdTunnelWrite<M>>:
    Send
    + Sync
    + 'static {
    // Required method
    fn create_tunnel<'life0, 'life1, 'async_trait>(
        &'life0 self,
        remote_id: &'life1 PeerId,
    ) -> Pin<Box<dyn Future<Output = CmdResult<Splittable<R, W>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn create_tunnel<'life0, 'life1, 'async_trait>( &'life0 self, remote_id: &'life1 PeerId, ) -> Pin<Box<dyn Future<Output = CmdResult<Splittable<R, W>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§