pub enum LaxPayloadSlice<'a> {
Empty,
Ether(LaxEtherPayloadSlice<'a>),
MacsecModified {
payload: &'a [u8],
incomplete: bool,
},
Ip(LaxIpPayloadSlice<'a>),
Udp {
payload: &'a [u8],
incomplete: bool,
},
Tcp {
payload: &'a [u8],
incomplete: bool,
},
Icmpv4 {
payload: &'a [u8],
incomplete: bool,
},
Icmpv6 {
payload: &'a [u8],
incomplete: bool,
},
}
Expand description
Laxly parsed payload together with an identifier the type of content & the information if the payload is incomplete.
Variants§
Empty
No specific payload (e.g. ARP packet).
Ether(LaxEtherPayloadSlice<'a>)
Payload with it’s type identified by an ether type number (e.g. after an ethernet II or vlan header).
MacsecModified
MACsec modified payload (either by encryption or other algorithm).
Ip(LaxIpPayloadSlice<'a>)
Payload with is’s type identified by an ip number (e.g. after an IP header or after an)
Udp
UDP payload.
Tcp
TCP payload.
Icmpv4
Payload part of an ICMP V4 message. Check crate::Icmpv4Type
for a description what will be part of the payload.
Icmpv6
Payload part of an ICMP V4 message. Check crate::Icmpv6Type
for a description what will be part of the payload.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for LaxPayloadSlice<'a>
impl<'a> Clone for LaxPayloadSlice<'a>
Source§fn clone(&self) -> LaxPayloadSlice<'a>
fn clone(&self) -> LaxPayloadSlice<'a>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a> Debug for LaxPayloadSlice<'a>
impl<'a> Debug for LaxPayloadSlice<'a>
Source§impl<'a> Hash for LaxPayloadSlice<'a>
impl<'a> Hash for LaxPayloadSlice<'a>
Source§impl<'a> Ord for LaxPayloadSlice<'a>
impl<'a> Ord for LaxPayloadSlice<'a>
Source§fn cmp(&self, other: &LaxPayloadSlice<'a>) -> Ordering
fn cmp(&self, other: &LaxPayloadSlice<'a>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq for LaxPayloadSlice<'a>
impl<'a> PartialEq for LaxPayloadSlice<'a>
Source§impl<'a> PartialOrd for LaxPayloadSlice<'a>
impl<'a> PartialOrd for LaxPayloadSlice<'a>
impl<'a> Eq for LaxPayloadSlice<'a>
impl<'a> StructuralPartialEq for LaxPayloadSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for LaxPayloadSlice<'a>
impl<'a> RefUnwindSafe for LaxPayloadSlice<'a>
impl<'a> Send for LaxPayloadSlice<'a>
impl<'a> Sync for LaxPayloadSlice<'a>
impl<'a> Unpin for LaxPayloadSlice<'a>
impl<'a> UnwindSafe for LaxPayloadSlice<'a>
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