Enum etherparse::LaxPayloadSlice
source · pub enum LaxPayloadSlice<'a> {
Ether(EtherPayloadSlice<'a>),
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§
Ether(EtherPayloadSlice<'a>)
Payload with it’s type identified by an ether type number (e.g. after an ethernet II or vlan header).
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 copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
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§fn eq(&self, other: &LaxPayloadSlice<'a>) -> bool
fn eq(&self, other: &LaxPayloadSlice<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> PartialOrd for LaxPayloadSlice<'a>
impl<'a> PartialOrd for LaxPayloadSlice<'a>
source§fn partial_cmp(&self, other: &LaxPayloadSlice<'a>) -> Option<Ordering>
fn partial_cmp(&self, other: &LaxPayloadSlice<'a>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl<'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