NatHandler

Trait NatHandler 

Source
pub trait NatHandler: Send {
    // Required method
    fn receive<'life0, 'life1, 'async_trait>(
        &'life0 self,
        packet: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn receive<'life0, 'life1, 'async_trait>( &'life0 self, packet: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§