Trait BufRead

Source
pub trait BufRead: BufInterest {
    // Required method
    fn do_io<Io>(&mut self, io: &mut Io) -> Result<(), Error>
       where Io: Read;
}
Expand description

trait generic over different types of read buffer strategy.

Required Methods§

Source

fn do_io<Io>(&mut self, io: &mut Io) -> Result<(), Error>
where Io: Read,

read from IO and write into buffer.

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§

Source§

impl BufRead for BytesMut

Source§

impl<const LIMIT: usize> BufRead for ReadBuf<LIMIT>

Source§

impl<const P: usize> BufRead for PagedBytesMut<P>