Trait HeaderDecode

Source
pub trait HeaderDecode<'a>
where Self: Sized,
{ // Required method fn decode( flags: PacketFlags, bytes: &'a [u8], ) -> Result<Status<(usize, Self)>, DecodeError>; }

Required Methods§

Source

fn decode( flags: PacketFlags, bytes: &'a [u8], ) -> Result<Status<(usize, Self)>, DecodeError>

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<'a> HeaderDecode<'a> for Publish<'a>

Source§

impl<'buf> HeaderDecode<'buf> for Connack

Source§

impl<'buf> HeaderDecode<'buf> for Connect<'buf>

Source§

impl<'buf> HeaderDecode<'buf> for PacketIdentifier