pub trait _Serial {
// Required methods
fn new(port: SerialPort) -> Self;
fn init(&self) -> Result<(), &'static str>;
fn write(&self, string: &str);
}Expand description
Interface for a serial port implementation.
Required Methods§
Sourcefn new(port: SerialPort) -> Self
fn new(port: SerialPort) -> Self
Create a new (uninitialized) serial port instance for the given COM port.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".