pub trait Writer: Send {
// Required method
fn send_frame(&mut self, data: &[u8]) -> Result<()>;
}Expand description
Writable end of an interface. Held by the driver.
Each implementation wraps a socket + framing.
Required Methods§
fn send_frame(&mut self, data: &[u8]) -> Result<()>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".