pub trait Read {
type Error: ReadError;
// Required method
fn read_slice(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>;
}Expand description
This trait allows reading bytes from a source.
Types implementing this trait are called “readers”.