pub trait InputPacketBytes: Send + Sync {
fn take_byte<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = InputPacketBytesResult<u8>> + Send + 'async_trait>>
where
'life0: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: '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
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
fn has_bytes(&self, count: usize) -> bool;
fn remaining_bytes(&self) -> usize;
}