Skip to main content

Framer

Trait Framer 

Source
pub trait Framer {
    type Error;

    // Required method
    fn frame(
        &self,
        data: &[u8],
        output: &mut [u8],
    ) -> Result<usize, Self::Error>;
}
Expand description

Wraps coded data for transmission (ASM for TM, CLTU for TC).

Required Associated Types§

Source

type Error

Error type for framing operations.

Required Methods§

Source

fn frame(&self, data: &[u8], output: &mut [u8]) -> Result<usize, Self::Error>

Frames data into output (e.g. prepends ASM).

Implementors§