Skip to main content

ClassifiedCmdTunnelFactory

Trait ClassifiedCmdTunnelFactory 

Source
pub trait ClassifiedCmdTunnelFactory<C: WorkerClassification, M: CmdTunnelMeta, R: ClassifiedCmdTunnelRead<C, M>, W: ClassifiedCmdTunnelWrite<C, M>>:
    Send
    + Sync
    + 'static {
    // Required method
    fn create_tunnel<'life0, 'async_trait>(
        &'life0 self,
        classification: Option<C>,
    ) -> Pin<Box<dyn Future<Output = CmdResult<Splittable<R, W>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

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

Implementors§