Trait embedded_hal_nb::serial::Write
source · pub trait Write<Word: Copy = u8>: ErrorType {
// 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 Methods§
Trait Implementations§
source§impl<Word, Error: Error> Write for dyn Write<Word, Error = Error> + '_
impl<Word, Error: Error> Write for dyn Write<Word, Error = Error> + '_
Implementation of core::fmt::Write
for the HAL’s serial::Write
.
TODO write example of usage