Trait avr_tester::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<'a> ReaderHelper for dyn Reader + 'a

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<'_>