Enum etherparse::err::Layer
source · pub enum Layer {
Show 21 variants
Ethernet2Header,
EtherPayload,
VlanHeader,
IpHeader,
Ipv4Header,
Ipv4Packet,
IpAuthHeader,
Ipv6Header,
Ipv6Packet,
Ipv6ExtHeader,
Ipv6HopByHopHeader,
Ipv6DestOptionsHeader,
Ipv6RouteHeader,
Ipv6FragHeader,
UdpHeader,
UdpPayload,
TcpHeader,
Icmpv4,
Icmpv4Timestamp,
Icmpv4TimestampReply,
Icmpv6,
}
Expand description
Layers on which an error can occur.
Variants§
Ethernet2Header
Error occurred in the ethernet 2 header.
EtherPayload
Payload identified by an ether type number (e.g. after an ethernet 2 header).
VlanHeader
Error occurred in the vlan header.
IpHeader
Error occurred when decoding an IP header (v4 or v6).
Ipv4Header
Error occurred in the IPv4 layer.
Ipv4Packet
Error occurred verifying the total length of an IPv4 packet.
IpAuthHeader
Error occurred in the IP Authentication header.
Ipv6Header
Error occurred in the IPv6 layer.
Ipv6Packet
Error occurred verifying the payload length of an IPv6 packet.
Ipv6ExtHeader
Error occurred while decoding a generic IPv6 extension header.
Ipv6HopByHopHeader
Error occurred while decoding “IPv6 Hop-by-Hop Option” extension header.
Ipv6DestOptionsHeader
Error occurred while decoding “IPv6 Destination Options” extension header.
Ipv6RouteHeader
Error occurred while decoding “IPv6 Routing” extension header.
Ipv6FragHeader
Error occurred while decoding an IPv6 fragment header.
UdpHeader
Error occurred while decoding an UDP header.
UdpPayload
Error occurred verifying the length of the UDP payload.
TcpHeader
Error occurred while decoding a TCP header.
Icmpv4
Error occurred while parsing an ICMP packet.
Icmpv4Timestamp
Error occurred while parsing an ICMP timestamp packet.
Icmpv4TimestampReply
Error occurred while parsing an ICMP timestamp reply packet.
Icmpv6
Error occurred while parsing an ICMPv6 packet.
Implementations§
Trait Implementations§
source§impl Ord for Layer
impl Ord for Layer
source§impl PartialEq for Layer
impl PartialEq for Layer
source§impl PartialOrd for Layer
impl PartialOrd for Layer
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more