Trait pnet_packet::Packet
source · pub trait Packet {
// Required methods
fn packet(&self) -> &[u8] ⓘ;
fn payload(&self) -> &[u8] ⓘ;
}
Expand description
Represents a generic network packet.
pub trait Packet {
// Required methods
fn packet(&self) -> &[u8] ⓘ;
fn payload(&self) -> &[u8] ⓘ;
}
Represents a generic network packet.