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 for EnhancedPacketOption<'a>
impl<'a> PartialEq for EnhancedPacketOption<'a>
impl<'a> Eq for EnhancedPacketOption<'a>
impl<'a> StructuralPartialEq for EnhancedPacketOption<'a>
Auto Trait Implementations§
impl<'a> Freeze for EnhancedPacketOption<'a>
impl<'a> RefUnwindSafe for EnhancedPacketOption<'a>
impl<'a> Send for EnhancedPacketOption<'a>
impl<'a> Sync for EnhancedPacketOption<'a>
impl<'a> Unpin for EnhancedPacketOption<'a>
impl<'a> UnwindSafe for EnhancedPacketOption<'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