Trait embedded_io::blocking::Read
source · [−]pub trait Read: Io {
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>;
fn read_exact(
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::Error>> { ... }
}Expand description
Blocking reader.
Semantics are the same as std::io::Read, check its documentation for details.
Required Methods
Provided Methods
fn read_exact(
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact(
&mut self,
buf: &mut [u8]
) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill buf.