Trait BufRead

Source
pub trait BufRead: Read {
    // Required methods
    fn fill_buf(&mut self) -> impl Future<Output = Result<&[u8]>> + Send;
    fn consume(&mut self, amt: usize);
}

Required Methods§

Source

fn fill_buf(&mut self) -> impl Future<Output = Result<&[u8]>> + Send

Source

fn consume(&mut self, amt: usize)

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§