Skip to main content

PortBackend

Trait PortBackend 

Source
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ยง

Source

fn write_physical(&self, path: &str, data: &[u8]) -> Result<(), Error>

๐Ÿ‘ŽDeprecated:

use ExchangeIo; PortBackend will be removed in 4.0

Source

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

Implementorsยง