Trait crabik_board::serial::Write[][src]

pub trait Write<Word> {
    type Error;
    pub fn write(&mut self, word: Word) -> Result<(), Error<Self::Error>>;
pub fn flush(&mut self) -> Result<(), Error<Self::Error>>; }

Write half of a serial interface

Associated Types

type Error[src]

Write error

Loading content...

Required methods

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

Writes a single word to the serial interface

pub fn flush(&mut self) -> Result<(), Error<Self::Error>>[src]

Ensures that none of the previously written words are still buffered

Loading content...

Trait Implementations

impl<Word, Error> Write for dyn Write<Word, Error = Error> + 'static where
    Word: From<u8>, 
[src]

Implementors

Loading content...