[][src]Trait embedded_hal::serial::Write

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

Write half of a serial interface

Associated Types

type Error

Write error

Loading content...

Required methods

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

Writes a single word to the serial interface

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

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> + '_ where
    Word: From<u8>, 
[src]

Implementors

Loading content...