pub trait SerialWrite {
// Required method
async fn serial_write(&mut self, data: &[u8]) -> Result<()>;
}Expand description
Asynchronous byte writer abstraction over a target serial device.
Required Methods§
Sourceasync fn serial_write(&mut self, data: &[u8]) -> Result<()>
async fn serial_write(&mut self, data: &[u8]) -> Result<()>
Writes the full slice of bytes to the serial device.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".