pub trait CmuxPhysicalIo: Send + Sync {
// Required method
fn write_all(&self, data: &[u8]) -> Result<(), String>;
// Provided method
fn write_timeout(&self, len: usize) -> Duration { ... }
}Expand description
Writes raw bytes to the physical CMUX bearer.
Required Methods§
Provided Methods§
Sourcefn write_timeout(&self, len: usize) -> Duration
fn write_timeout(&self, len: usize) -> Duration
How long a write of len bytes may take; also how long a channel write waits
out flow control (FCoff, MSC FC) before it fails. Default 1 s.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".