pub trait Write<Word = u8>: ErrorTypewhere
Word: Copy,{
// Required methods
fn write(&mut self, word: Word) -> Result<(), Error<Self::Error>>;
fn flush(&mut self) -> Result<(), Error<Self::Error>>;
}
Expand description
Write half of a serial interface.
Required Methods§
Trait Implementations§
Source§impl<Word, Error> Write for dyn Write<Word, Error = Error> + '_where
Error: Error,
Word: Copy + From<u8>,
impl<Word, Error> Write for dyn Write<Word, Error = Error> + '_where
Error: Error,
Word: Copy + From<u8>,
Implementation of core::fmt::Write
for the HAL’s serial::Write
.
TODO write example of usage