Skip to main content

Deframer

Trait Deframer 

Source
pub trait Deframer {
    type Error;

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

Extracts coded data from a framed transmission.

Required Associated Types§

Source

type Error

Error type for deframing operations.

Required Methods§

Source

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

Strips framing from data and writes the payload to output.

Implementors§