Trait pnet::packet::PacketSize
[−]
[src]
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 GrePacket<'a>
impl<'a> PacketSize for MutableGrePacket<'a>
impl<'a> PacketSize for U16BEPacket<'a>
impl<'a> PacketSize for MutableU16BEPacket<'a>
impl<'a> PacketSize for U32BEPacket<'a>
impl<'a> PacketSize for MutableU32BEPacket<'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>
impl<'a> PacketSize for TcpPacket<'a>
impl<'a> PacketSize for MutableTcpPacket<'a>
impl<'a> PacketSize for TcpOptionPacket<'a>
impl<'a> PacketSize for MutableTcpOptionPacket<'a>
impl<'a> PacketSize for ArpPacket<'a>
impl<'a> PacketSize for MutableArpPacket<'a>
impl<'a> PacketSize for EchoReplyPacket<'a>
impl<'a> PacketSize for MutableEchoReplyPacket<'a>
impl<'a> PacketSize for EchoRequestPacket<'a>
impl<'a> PacketSize for MutableEchoRequestPacket<'a>
impl<'a> PacketSize for DestinationUnreachablePacket<'a>
impl<'a> PacketSize for MutableDestinationUnreachablePacket<'a>
impl<'a> PacketSize for TimeExceededPacket<'a>
impl<'a> PacketSize for MutableTimeExceededPacket<'a>
impl<'a> PacketSize for IcmpPacket<'a>
impl<'a> PacketSize for MutableIcmpPacket<'a>
impl<'a> PacketSize for VlanPacket<'a>
impl<'a> PacketSize for MutableVlanPacket<'a>