pub trait Read { // Required methods fn read(&mut self, buf: &mut [u8]) -> Result<usize, Error>; fn can_read(&self) -> bool; }
Read data from the device. Returns the number of bytes read.
Returns true if the device is ready to read.