Skip to main content

CodingWrite

Trait CodingWrite 

Source
pub trait CodingWrite {
    type Error: Error;

    // Required method
    fn write(
        &mut self,
        frame: &[u8],
    ) -> impl Future<Output = Result<(), Self::Error>>;
}
Expand description

Accepts a transfer frame and writes it through the coding chain to the physical layer.

Required Associated Types§

Source

type Error: Error

Error type for write operations.

Required Methods§

Source

fn write( &mut self, frame: &[u8], ) -> impl Future<Output = Result<(), Self::Error>>

Encodes and writes a transfer frame.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<R, F, M, W, const BUF: usize> CodingWrite for CodingWriter<R, F, M, W, BUF>
where R: Randomizer, F: FecEncoder, F::Error: Error, M: Framer, M::Error: Error, W: PhysicalWrite, W::Error: Error,