Trait pnet::packet::PacketSize
[−]
pub trait PacketSize: Packet {
fn packet_size(&self) -> usize;
}Used to find the calculated size of the packet. This is used for occasions where the underlying buffer is not the same length as the packet itself.
Required Methods
fn packet_size(&self) -> usize
Get the calculated size of the packet
Implementors
impl<'a> PacketSize for EthernetPacket<'a>impl<'a> PacketSize for MutableEthernetPacket<'a>impl<'a> PacketSize for Ipv4Packet<'a>impl<'a> PacketSize for MutableIpv4Packet<'a>impl<'a> PacketSize for Ipv4OptionPacket<'a>impl<'a> PacketSize for MutableIpv4OptionPacket<'a>impl<'a> PacketSize for Ipv6Packet<'a>impl<'a> PacketSize for MutableIpv6Packet<'a>impl<'a> PacketSize for UdpPacket<'a>impl<'a> PacketSize for MutableUdpPacket<'a>