Trait avr_oxide::io::Read

source ·
pub trait Read {
    // Required method
    fn read(&mut self, _buf: &mut [u8]) -> Result<usize>;

    // Provided method
    fn read_exact(&mut self, buf: &mut [u8]) -> Result<()> { ... }
}

Required Methods§

source

fn read(&mut self, _buf: &mut [u8]) -> Result<usize>

Provided Methods§

source

fn read_exact(&mut self, buf: &mut [u8]) -> Result<()>

Implementations on Foreign Types§

source§

impl Read for Stdin

source§

fn read(&mut self, buf: &mut [u8]) -> Result<usize>

Implementors§

source§

impl<S> Read for SerialPort<'_, S>
where S: EventSink,