Type Alias MunchOutput

Source
pub type MunchOutput<T> = Option<(T, usize)>;
Expand description

Output type for ReadMuncher parse function

T is the iterator output type (e.g. Packet or Frame structs).

usize is the number of bytes consumed to created the output type.

Aliased Type§

pub enum MunchOutput<T> {
    None,
    Some((T, usize)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some((T, usize))

Some value of type T.