Disconnected

Trait Disconnected 

Source
pub trait Disconnected: Send {
    // Required methods
    fn connect<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
    fn listen<'async_trait>(
        self: Box<Self>,
    ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>, Error>> + Send + 'async_trait>>
       where Self: 'async_trait;
}

Required Methods§

Source

fn connect<'async_trait>( self: Box<Self>, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Source

fn listen<'async_trait>( self: Box<Self>, ) -> Pin<Box<dyn Future<Output = Result<Box<dyn Connected>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,

Implementors§

Source§

impl<TAsyncDuplex: AsyncRead + AsyncWrite + Send + 'static> Disconnected for MultiplexedConnection<TAsyncDuplex>