pub enum MultiStepParserResult<B, const MAX_EXTENSIONS: usize>{
Show 26 variants
Ethernet(DataBuffer<B, Eth>),
VlanEth(DataBuffer<B, Ieee802_1QVlan<Eth>>),
ArpEth(DataBuffer<B, Arp<Eth>>),
ArpVlanEth(DataBuffer<B, Arp<Ieee802_1QVlan<Eth>>>),
Ipv4Eth(DataBuffer<B, Ipv4<Eth>>),
FragmentIpv4Eth(DataBuffer<B, Ipv4<Eth>>),
TcpIpv4Eth(DataBuffer<B, Tcp<Ipv4<Eth>>>),
UdpIpv4Eth(DataBuffer<B, Udp<Ipv4<Eth>>>),
Ipv4VlanEth(DataBuffer<B, Ipv4<Ieee802_1QVlan<Eth>>>),
FragmentIpv4VlanEth(DataBuffer<B, Ipv4<Ieee802_1QVlan<Eth>>>),
TcpIpv4VlanEth(DataBuffer<B, Tcp<Ipv4<Ieee802_1QVlan<Eth>>>>),
UdpIpv4VlanEth(DataBuffer<B, Udp<Ipv4<Ieee802_1QVlan<Eth>>>>),
Ipv6Eth(DataBuffer<B, Ipv6<Eth>>),
TcpIpv6Eth(DataBuffer<B, Tcp<Ipv6<Eth>>>),
UdpIpv6Eth(DataBuffer<B, Udp<Ipv6<Eth>>>),
Ipv6VlanEth(DataBuffer<B, Ipv6<Ieee802_1QVlan<Eth>>>),
TcpIpv6VlanEth(DataBuffer<B, Tcp<Ipv6<Ieee802_1QVlan<Eth>>>>),
UdpIpv6VlanEth(DataBuffer<B, Udp<Ipv6<Ieee802_1QVlan<Eth>>>>),
Ipv6ExtsIpv6Eth(DataBuffer<B, Ipv6Extensions<Ipv6<Eth>, MAX_EXTENSIONS>>),
FragmentIpv6ExtsIpv6Eth(DataBuffer<B, Ipv6Extensions<Ipv6<Eth>, MAX_EXTENSIONS>>),
TcpIpv6ExtsIpv6Eth(DataBuffer<B, Tcp<Ipv6Extensions<Ipv6<Eth>, MAX_EXTENSIONS>>>),
UdpIpv6ExtsIpv6Eth(DataBuffer<B, Udp<Ipv6Extensions<Ipv6<Eth>, MAX_EXTENSIONS>>>),
Ipv6ExtsIpv6VlanEth(DataBuffer<B, Ipv6Extensions<Ipv6<Ieee802_1QVlan<Eth>>, MAX_EXTENSIONS>>),
FragmentIpv6ExtsIpv6VlanEth(DataBuffer<B, Ipv6Extensions<Ipv6<Ieee802_1QVlan<Eth>>, MAX_EXTENSIONS>>),
TcpIpv6ExtsIpv6VlanEth(DataBuffer<B, Tcp<Ipv6Extensions<Ipv6<Ieee802_1QVlan<Eth>>, MAX_EXTENSIONS>>>),
UdpIpv6ExtsIpv6VlanEth(DataBuffer<B, Udp<Ipv6Extensions<Ipv6<Ieee802_1QVlan<Eth>>, MAX_EXTENSIONS>>>),
}
Expand description
Possible results of parse_network_data()
.
Variants§
Ethernet(DataBuffer<B, Eth>)
Ethernet
VlanEth(DataBuffer<B, Ieee802_1QVlan<Eth>>)
Ethernet Vlan
ArpEth(DataBuffer<B, Arp<Eth>>)
Ethernet ARP
ArpVlanEth(DataBuffer<B, Arp<Ieee802_1QVlan<Eth>>>)
Ethernet Vlan Arp
Ipv4Eth(DataBuffer<B, Ipv4<Eth>>)
Ethernet IPv4
FragmentIpv4Eth(DataBuffer<B, Ipv4<Eth>>)
Ethernet IPv4 Fragment
TcpIpv4Eth(DataBuffer<B, Tcp<Ipv4<Eth>>>)
Ethernet IPv4 TCP
UdpIpv4Eth(DataBuffer<B, Udp<Ipv4<Eth>>>)
Ethernet IPv4 UDP
Ipv4VlanEth(DataBuffer<B, Ipv4<Ieee802_1QVlan<Eth>>>)
Ethernet Vlan IPv4
FragmentIpv4VlanEth(DataBuffer<B, Ipv4<Ieee802_1QVlan<Eth>>>)
Ethernet Vlan IPv4 Fragment
TcpIpv4VlanEth(DataBuffer<B, Tcp<Ipv4<Ieee802_1QVlan<Eth>>>>)
Ethernet Vlan Ipv4 TCP
UdpIpv4VlanEth(DataBuffer<B, Udp<Ipv4<Ieee802_1QVlan<Eth>>>>)
Ethernet Vlan Ipv4 UDP
Ipv6Eth(DataBuffer<B, Ipv6<Eth>>)
Ethernet IPv6
TcpIpv6Eth(DataBuffer<B, Tcp<Ipv6<Eth>>>)
Ethernet IPv6 TCP
UdpIpv6Eth(DataBuffer<B, Udp<Ipv6<Eth>>>)
Ethernet IPv6 UDP
Ipv6VlanEth(DataBuffer<B, Ipv6<Ieee802_1QVlan<Eth>>>)
Ethernet Vlan IPv6
TcpIpv6VlanEth(DataBuffer<B, Tcp<Ipv6<Ieee802_1QVlan<Eth>>>>)
Ethernet Vlan IPv6 TCP
UdpIpv6VlanEth(DataBuffer<B, Udp<Ipv6<Ieee802_1QVlan<Eth>>>>)
Ethernet Vlan IPv6 UDP
Ipv6ExtsIpv6Eth(DataBuffer<B, Ipv6Extensions<Ipv6<Eth>, MAX_EXTENSIONS>>)
Ethernet IPv6 IPv6 Extensions
FragmentIpv6ExtsIpv6Eth(DataBuffer<B, Ipv6Extensions<Ipv6<Eth>, MAX_EXTENSIONS>>)
Ethernet IPv6 IPv6 Extensions (Fragment)
TcpIpv6ExtsIpv6Eth(DataBuffer<B, Tcp<Ipv6Extensions<Ipv6<Eth>, MAX_EXTENSIONS>>>)
Ethernet IPv6 IPv6 Extensions TCP
UdpIpv6ExtsIpv6Eth(DataBuffer<B, Udp<Ipv6Extensions<Ipv6<Eth>, MAX_EXTENSIONS>>>)
Ethernet IPv6 IPv6 Extensions UDP
Ipv6ExtsIpv6VlanEth(DataBuffer<B, Ipv6Extensions<Ipv6<Ieee802_1QVlan<Eth>>, MAX_EXTENSIONS>>)
Ethernet Vlan IPv6 IPv6 Extensions
FragmentIpv6ExtsIpv6VlanEth(DataBuffer<B, Ipv6Extensions<Ipv6<Ieee802_1QVlan<Eth>>, MAX_EXTENSIONS>>)
Ethernet Vlan IPv6 IPv6 Extensions (Fragment)
TcpIpv6ExtsIpv6VlanEth(DataBuffer<B, Tcp<Ipv6Extensions<Ipv6<Ieee802_1QVlan<Eth>>, MAX_EXTENSIONS>>>)
Ethernet Vlan IPv6 IPv6 Extensions TCP
UdpIpv6ExtsIpv6VlanEth(DataBuffer<B, Udp<Ipv6Extensions<Ipv6<Ieee802_1QVlan<Eth>>, MAX_EXTENSIONS>>>)
Ethernet Vlan IPv6 IPv6 Extensions UDP
Trait Implementations§
source§impl<B, const MAX_EXTENSIONS: usize> Debug for MultiStepParserResult<B, MAX_EXTENSIONS>
impl<B, const MAX_EXTENSIONS: usize> Debug for MultiStepParserResult<B, MAX_EXTENSIONS>
source§impl<B, const MAX_EXTENSIONS: usize> Hash for MultiStepParserResult<B, MAX_EXTENSIONS>
impl<B, const MAX_EXTENSIONS: usize> Hash for MultiStepParserResult<B, MAX_EXTENSIONS>
source§impl<B, const MAX_EXTENSIONS: usize> PartialEq for MultiStepParserResult<B, MAX_EXTENSIONS>
impl<B, const MAX_EXTENSIONS: usize> PartialEq for MultiStepParserResult<B, MAX_EXTENSIONS>
source§fn eq(&self, other: &MultiStepParserResult<B, MAX_EXTENSIONS>) -> bool
fn eq(&self, other: &MultiStepParserResult<B, MAX_EXTENSIONS>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl<B, const MAX_EXTENSIONS: usize> Eq for MultiStepParserResult<B, MAX_EXTENSIONS>
impl<B, const MAX_EXTENSIONS: usize> StructuralPartialEq for MultiStepParserResult<B, MAX_EXTENSIONS>
Auto Trait Implementations§
impl<B, const MAX_EXTENSIONS: usize> Freeze for MultiStepParserResult<B, MAX_EXTENSIONS>where
B: Freeze,
impl<B, const MAX_EXTENSIONS: usize> RefUnwindSafe for MultiStepParserResult<B, MAX_EXTENSIONS>where
B: RefUnwindSafe,
impl<B, const MAX_EXTENSIONS: usize> Send for MultiStepParserResult<B, MAX_EXTENSIONS>where
B: Send,
impl<B, const MAX_EXTENSIONS: usize> Sync for MultiStepParserResult<B, MAX_EXTENSIONS>where
B: Sync,
impl<B, const MAX_EXTENSIONS: usize> Unpin for MultiStepParserResult<B, MAX_EXTENSIONS>where
B: Unpin,
impl<B, const MAX_EXTENSIONS: usize> UnwindSafe for MultiStepParserResult<B, MAX_EXTENSIONS>where
B: UnwindSafe,
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
Mutably borrows from an owned value. Read more