Trait Reader

Source
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§

Source

fn read_byte(&mut self) -> u8

Reads a byte from the AVR; when the buffer is empty, panics.

Source

fn try_read_byte(&mut self) -> Option<u8>

Reads a byte from the AVR; when the buffer is empty, returns None.

Trait Implementations§

Source§

impl ReaderHelper for dyn Reader + '_

Source§

fn read<T>(&mut self) -> T
where T: Readable,

Implementors§

Source§

impl Reader for Spi<'_>

Source§

impl Reader for SpiAsync

Source§

impl Reader for Uart<'_>