Trait pnet::packet::Packet
[−]
pub trait Packet {
fn packet(&self) -> &[u8];
fn payload(&self) -> &[u8];
}Represents a generic network packet
Required Methods
fn packet(&self) -> &[u8]
Retreive the underlying buffer for the packet
fn payload(&self) -> &[u8]
Retreive the payload for the packet
Implementors
impl<'a> Packet for MutableEthernetPacket<'a>impl<'a> Packet for EthernetPacket<'a>impl<'a> Packet for MutableIpv4Packet<'a>impl<'a> Packet for Ipv4Packet<'a>impl<'a> Packet for MutableIpv4OptionPacket<'a>impl<'a> Packet for Ipv4OptionPacket<'a>impl<'a> Packet for MutableIpv6Packet<'a>impl<'a> Packet for Ipv6Packet<'a>impl<'a> Packet for MutableUdpPacket<'a>impl<'a> Packet for UdpPacket<'a>