pub trait Reader {
// Required methods
fn read_byte(&mut self) -> u8;
fn try_read_byte(&mut self) -> Option<u8>;
}
Expand description
Object that can be read from, e.g. crate::Uart
.
Required Methods§
Sourcefn try_read_byte(&mut self) -> Option<u8>
fn try_read_byte(&mut self) -> Option<u8>
Reads a byte from the AVR; when the buffer is empty, returns None
.