pub trait Write<Word> {
type Error;
// 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
pub trait Write<Word> {
type Error;
// Required methods
fn write(&mut self, word: Word) -> Result<(), Self::Error>;
fn flush(&mut self) -> Result<(), Self::Error>;
}
Write half of a serial interface