pub trait Packet<B>: Debug + Sizedwhere
    B: PacketBytes,
{ type Header: PacketHeader; fn header(&self) -> &Self::Header; fn header_mut(&mut self) -> &mut Self::Header; fn empty() -> Self; fn from_bytes_and_header(bytes: B, header: Self::Header) -> Result<Self>; fn into_bytes(self) -> B; }

Required Associated Types§

Required Methods§

Returns an empty header this is used internally by this crate.

Important

body_len needs to return 0

Implementors§