pub enum MultiStepParserResult<B, const MAX_EXTENSIONS: usize>
where B: AsRef<[u8]>,
{
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>
where B: AsRef<[u8]> + Debug,

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<B, const MAX_EXTENSIONS: usize> Hash for MultiStepParserResult<B, MAX_EXTENSIONS>
where B: AsRef<[u8]> + Hash,

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<B, const MAX_EXTENSIONS: usize> PartialEq for MultiStepParserResult<B, MAX_EXTENSIONS>
where B: AsRef<[u8]> + PartialEq,

source§

fn eq(&self, other: &MultiStepParserResult<B, MAX_EXTENSIONS>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<B, const MAX_EXTENSIONS: usize> Eq for MultiStepParserResult<B, MAX_EXTENSIONS>
where B: AsRef<[u8]> + Eq,

source§

impl<B, const MAX_EXTENSIONS: usize> StructuralPartialEq for MultiStepParserResult<B, MAX_EXTENSIONS>
where B: AsRef<[u8]>,

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> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.