pub enum EnhancedPacketOption<'a> {
Comment(Cow<'a, str>),
Flags(u32),
Hash(Cow<'a, [u8]>),
DropCount(u64),
CustomBinary(CustomBinaryOption<'a>),
CustomUtf8(CustomUtf8Option<'a>),
Unknown(UnknownOption<'a>),
}
Expand description
The Enhanced Packet Block (EPB) options
Variants§
Comment(Cow<'a, str>)
Comment associated with the current block
Flags(u32)
32-bit flags word containing link-layer information.
Hash(Cow<'a, [u8]>)
Contains a hash of the packet.
DropCount(u64)
64-bit integer value specifying the number of packets lost (by the interface and the operating system) between this packet and the preceding one for the same interface or, for the first packet for an interface, between this packet and the start of the capture process.
CustomBinary(CustomBinaryOption<'a>)
Custom option containing binary octets in the Custom Data portion
CustomUtf8(CustomUtf8Option<'a>)
Custom option containing a UTF-8 string in the Custom Data portion
Unknown(UnknownOption<'a>)
Unknown option
Implementations§
source§impl<'a> EnhancedPacketOption<'a>
impl<'a> EnhancedPacketOption<'a>
sourcepub fn into_owned(self) -> EnhancedPacketOption<'static>
pub fn into_owned(self) -> EnhancedPacketOption<'static>
Returns a version of self
with all fields converted to owning versions.
Trait Implementations§
source§impl<'a> Clone for EnhancedPacketOption<'a>
impl<'a> Clone for EnhancedPacketOption<'a>
source§fn clone(&self) -> EnhancedPacketOption<'a>
fn clone(&self) -> EnhancedPacketOption<'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 EnhancedPacketOption<'a>
impl<'a> Debug for EnhancedPacketOption<'a>
source§impl<'a> PartialEq<EnhancedPacketOption<'a>> for EnhancedPacketOption<'a>
impl<'a> PartialEq<EnhancedPacketOption<'a>> for EnhancedPacketOption<'a>
source§fn eq(&self, other: &EnhancedPacketOption<'a>) -> bool
fn eq(&self, other: &EnhancedPacketOption<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.