Write

Trait Write 

Source
pub trait Write<Word> {
    type Error;

    // Required methods
    fn write(&mut self, word: Word) -> Result<(), Self::Error>;
    fn flush(&mut self) -> Result<(), Self::Error>;
}
Expand description

Write half of a serial interface

Required Associated Types§

Source

type Error

Write error

Required Methods§

Source

fn write(&mut self, word: Word) -> Result<(), Self::Error>

Writes a single word to the serial interface

Source

fn flush(&mut self) -> Result<(), Self::Error>

Ensures that none of the previously written words are still buffered

Implementors§

Source§

impl<W, TX: Write<W>, RX: Read<W>> Write<W> for Serial<W, TX, RX>

Source§

type Error = <TX as Write<W>>::Error