pub trait ReadRecordBytes {
    // Required methods
    fn read_full_buf_or_none<'life0, 'life1, 'async_trait>(
        &'life0 mut self,
        buf: &'life1 mut BytesMut
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn read_record_bytes<'life0, 'async_trait>(
        &'life0 mut self
    ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn read_full_buf_or_none<'life0, 'life1, 'async_trait>( &'life0 mut self, buf: &'life1 mut BytesMut ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn read_record_bytes<'life0, 'async_trait>( &'life0 mut self ) -> Pin<Box<dyn Future<Output = Result<Option<Bytes>>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait,

Implementors§

source§

impl<R: AsyncRead + Send + Unpin> ReadRecordBytes for R