Trait avr_oxide::io::Write

source ·
pub trait Write {
    // Required methods
    fn flush(&mut self) -> Result<()>;
    fn write_buffered(&mut self, buf: &[u8]) -> Result<usize>;

    // Provided methods
    fn write(&mut self, buf: &[u8]) -> Result<usize> { ... }
    fn write_all(&mut self, buf: &[u8]) -> Result<()> { ... }
}

Required Methods§

source

fn flush(&mut self) -> Result<()>

source

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

Provided Methods§

source

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

source

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

Implementations on Foreign Types§

source§

impl Write for Stderr

source§

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

source§

fn flush(&mut self) -> Result<()>

source§

impl Write for Stdout

source§

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

source§

fn flush(&mut self) -> Result<()>

Implementors§

source§

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