pub trait Packet { fn packet(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]; fn payload(&self) -> &[u8]ⓘNotable traits for &'_ [u8]impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]; }
impl<'_> Read for &'_ [u8]impl<'_> Write for &'_ mut [u8]
Represents a generic network packet.
Retrieve the underlying buffer for the packet.
Retrieve the payload for the packet.