Trait AsyncCacheReadExt

Source
pub trait AsyncCacheReadExt: AsyncCacheRead {
    // Provided methods
    fn read_until<'a, T: AsRef<[u8]>>(
        &'a mut self,
        delim: T,
        buf: &'a mut Vec<u8>,
    ) -> ReadUntil<'a, Self, T> 
       where Self: Unpin { ... }
    fn read_line<'a>(
        &'a mut self,
        buf: &'a mut Vec<u8>,
    ) -> ReadUntil<'a, Self, &'static [u8]> 
       where Self: Unpin { ... }
    fn read_line_crlf<'a>(
        &'a mut self,
        buf: &'a mut Vec<u8>,
    ) -> ReadUntil<'a, Self, &'static [u8]> 
       where Self: Unpin { ... }
    async fn read_until_regex<'a>(
        &'a mut self,
        pattern: &str,
        buf: &'a mut Vec<u8>,
    ) -> Result<ReadUntilRegex<'a, Self>, Error>
       where Self: Unpin { ... }
}

Provided Methods§

Source

fn read_until<'a, T: AsRef<[u8]>>( &'a mut self, delim: T, buf: &'a mut Vec<u8>, ) -> ReadUntil<'a, Self, T>
where Self: Unpin,

Source

fn read_line<'a>( &'a mut self, buf: &'a mut Vec<u8>, ) -> ReadUntil<'a, Self, &'static [u8]>
where Self: Unpin,

Source

fn read_line_crlf<'a>( &'a mut self, buf: &'a mut Vec<u8>, ) -> ReadUntil<'a, Self, &'static [u8]>
where Self: Unpin,

Source

async fn read_until_regex<'a>( &'a mut self, pattern: &str, buf: &'a mut Vec<u8>, ) -> Result<ReadUntilRegex<'a, Self>, Error>
where Self: Unpin,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§