pub trait Packet {
// Required methods
fn packet(&self) -> &[u8] ⓘ;
fn payload(&self) -> &[u8] ⓘ;
}Expand description
Represents a generic network packet.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".