OutputPacketBytes

Trait OutputPacketBytes 

Source
pub trait OutputPacketBytes: Send + Sync {
    // Required methods
    fn write_byte<'life0, 'async_trait>(
        &'life0 mut self,
        byte: u8,
    ) -> Pin<Box<dyn Future<Output = OutputPacketBytesResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn write_bytes<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        slice: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = OutputPacketBytesResult> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn write_byte<'life0, 'async_trait>( &'life0 mut self, byte: u8, ) -> Pin<Box<dyn Future<Output = OutputPacketBytesResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn write_bytes<'life0, 'life1, 'async_trait>( &'life0 mut self, slice: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = OutputPacketBytesResult> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§