pub trait Read<Word: Copy = u8>: ErrorType {
// Required method
fn read(&mut self) -> Result<Word, Self::Error>;
}Expand description
Read half of a serial interface.
Some serial interfaces support different data sizes (8 bits, 9 bits, etc.);
This can be encoded in this trait via the Word type parameter.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".