Skip to main content

SerialWrite

Trait SerialWrite 

Source
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§

Source

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".

Implementations on Foreign Types§

Source§

impl SerialWrite for DeviceProxy

Source§

async fn serial_write(&mut self, data: &[u8]) -> Result<()>

Implementors§