pub trait Uart {
// Required methods
fn write_bytes(&mut self, port: Port, data: &[u8]) -> Result<(), String>;
fn read_bytes(&mut self, port: Port, max: usize) -> Result<Vec<u8>, String>;
}Required Methods§
fn write_bytes(&mut self, port: Port, data: &[u8]) -> Result<(), String>
fn read_bytes(&mut self, port: Port, max: usize) -> Result<Vec<u8>, String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".