Trait BaseTcpListenerHandler

Source
pub trait BaseTcpListenerHandler: Send + Sync {
    // Required method
    fn on_accept<'life0, 'async_trait>(
        &'life0 self,
        stream: TcpStream,
    ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn on_accept<'life0, 'async_trait>( &'life0 self, stream: TcpStream, ) -> Pin<Box<dyn Future<Output = BuckyResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§