pub trait PortBackend: ExchangeIo {
// Required methods
fn write_physical(&self, path: &str, data: &[u8]) -> Result<(), Error>;
fn purge_rx(&self, path: &str) -> Result<(), Error>;
}๐Deprecated:
use ExchangeIo; PortBackend will be removed in 4.0
Expand description
Physical port write / purge (alias for unified backend trait surface).
Prefer ExchangeIo. Kept public for patch-compat with downstream imports;
will be removed in the next major.
Required Methodsยง
fn write_physical(&self, path: &str, data: &[u8]) -> Result<(), Error>
๐Deprecated:
use ExchangeIo; PortBackend will be removed in 4.0
fn purge_rx(&self, path: &str) -> Result<(), Error>
๐Deprecated:
use ExchangeIo; PortBackend will be removed in 4.0
Dyn Compatibilityยง
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".