pub trait EmapiConnection {
// Required methods
fn write(&mut self, data: &[u8]) -> Result<()>;
fn read(&mut self, timeout: Duration) -> Result<Vec<u8>>;
}Required Methods§
fn write(&mut self, data: &[u8]) -> Result<()>
fn read(&mut self, timeout: Duration) -> Result<Vec<u8>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".