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

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

Write half of a serial interface

Associated Types

type Error[]

Write error

Required methods

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

Writes a single word to the serial interface

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

Ensures that none of the previously written words are still buffered

Trait Implementations

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

Implementors

impl<B, RS, WS, '_> Write<u8> for SerialPort<'_, B, RS, WS> where
    B: UsbBus,
    RS: BorrowMut<[u8]>,
    WS: BorrowMut<[u8]>,