pub fn decode(bytes: &[u8]) -> Result<Packet<'_>, PacketError>Expand description
Decode and validate all fields and exact full consumption before allocation.
pub fn decode(bytes: &[u8]) -> Result<Packet<'_>, PacketError>Decode and validate all fields and exact full consumption before allocation.