pub trait Read {
type Error;
// Required method
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>;
}
Expand description
Read bytes.
When the std
feature is enabled (by default), this trait is automatically
implemented for any type that implemented std::io::Read
.