Enum etherparse::err::Layer
source · pub enum Layer {
Show 22 variants
LinuxSllHeader,
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§
LinuxSllHeader
Error occurred in the Linux Cooked Capture v1 (SLL) header.
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 PartialOrd for Layer
impl PartialOrd for Layer
impl Copy for Layer
impl Eq for Layer
impl StructuralPartialEq for Layer
Auto Trait Implementations§
impl Freeze for Layer
impl RefUnwindSafe for Layer
impl Send for Layer
impl Sync for Layer
impl Unpin for Layer
impl UnwindSafe for Layer
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)