Skip to main content

CmdTunnelService

Trait CmdTunnelService 

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

Required Methods§

Source

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

Implementors§

Source§

impl<M: CmdTunnelMeta, R: CmdTunnelRead<M>, W: CmdTunnelWrite<M>, LEN: RawEncode + for<'a> RawDecode<'a> + Copy + RawFixedBytes + Sync + Send + 'static + FromPrimitive + ToPrimitive, CMD: RawEncode + for<'a> RawDecode<'a> + Copy + RawFixedBytes + Sync + Send + 'static + Eq + Hash + Debug> CmdTunnelService<M, R, W> for DefaultCmdServerService<M, R, W, LEN, CMD>