pub enum PayloadSlice<'a> {
Empty,
Ether(EtherPayloadSlice<'a>),
MacsecMod(&'a [u8]),
Ip(IpPayloadSlice<'a>),
Udp(&'a [u8]),
Tcp(&'a [u8]),
Icmpv4(&'a [u8]),
Icmpv6(&'a [u8]),
}Expand description
Payload together with an identifier the type of content.
Variants§
Empty
No specific payload (e.g. ARP packet).
Ether(EtherPayloadSlice<'a>)
Payload with it’s type identified by an ether type number (e.g. after an ethernet II or vlan header).
MacsecMod(&'a [u8])
MACsec encrypted or modified payload.
Ip(IpPayloadSlice<'a>)
Payload with is’s type identified by an ip number (e.g. after an IP header or after an)
Udp(&'a [u8])
UDP payload.
Tcp(&'a [u8])
TCP payload.
Icmpv4(&'a [u8])
Payload part of an ICMP V4 message. Check crate::Icmpv4Type
for a description what will be part of the payload.
Icmpv6(&'a [u8])
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 PayloadSlice<'a>
impl<'a> Clone for PayloadSlice<'a>
Source§fn clone(&self) -> PayloadSlice<'a>
fn clone(&self) -> PayloadSlice<'a>
Returns a duplicate 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 PayloadSlice<'a>
impl<'a> Debug for PayloadSlice<'a>
Source§impl<'a> Hash for PayloadSlice<'a>
impl<'a> Hash for PayloadSlice<'a>
Source§impl<'a> Ord for PayloadSlice<'a>
impl<'a> Ord for PayloadSlice<'a>
Source§fn cmp(&self, other: &PayloadSlice<'a>) -> Ordering
fn cmp(&self, other: &PayloadSlice<'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 PayloadSlice<'a>
impl<'a> PartialEq for PayloadSlice<'a>
Source§impl<'a> PartialOrd for PayloadSlice<'a>
impl<'a> PartialOrd for PayloadSlice<'a>
impl<'a> Eq for PayloadSlice<'a>
impl<'a> StructuralPartialEq for PayloadSlice<'a>
Auto Trait Implementations§
impl<'a> Freeze for PayloadSlice<'a>
impl<'a> RefUnwindSafe for PayloadSlice<'a>
impl<'a> Send for PayloadSlice<'a>
impl<'a> Sync for PayloadSlice<'a>
impl<'a> Unpin for PayloadSlice<'a>
impl<'a> UnwindSafe for PayloadSlice<'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