pub trait Packet { fn packet(&self) -> &[u8]; fn payload(&self) -> &[u8]; }
Represents a generic network packet.
Retrieve the underlying buffer for the packet.
Retrieve the payload for the packet.