InputPacketBytes

Trait InputPacketBytes 

Source
pub trait InputPacketBytes: Send + Sync {
    // Required methods
    fn take_byte<'life0, 'async_trait>(
        &'life0 mut self,
    ) -> Pin<Box<dyn Future<Output = InputPacketBytesResult<u8>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn take_slice<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        slice: &'life1 mut [u8],
    ) -> Pin<Box<dyn Future<Output = InputPacketBytesResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn take_vec<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        vec: &'life1 mut Vec<u8>,
        count: usize,
    ) -> Pin<Box<dyn Future<Output = InputPacketBytesResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn has_bytes(&self, count: usize) -> bool;
    fn remaining_bytes(&self) -> usize;
}

Required Methods§

Source

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

Source

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

Source

fn take_vec<'life0, 'life1, 'async_trait>( &'life0 mut self, vec: &'life1 mut Vec<u8>, count: usize, ) -> Pin<Box<dyn Future<Output = InputPacketBytesResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn has_bytes(&self, count: usize) -> bool

Source

fn remaining_bytes(&self) -> usize

Implementors§