Trait muxado::Accept

source ·
pub trait Accept {
    // Required method
    fn accept<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Option<Stream>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Trait for accepting incoming streams in a muxado Session.

Required Methods§

source

fn accept<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Option<Stream>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Accept an incoming stream that was opened by the remote.

Implementors§