pub struct ParsedEnhancedPacket<'a> {
pub interface_id: u32,
pub timestamp: SystemTime,
pub captured_length: u32,
pub original_length: u32,
pub packet_data: &'a [u8],
}Expand description
A parsed Enhanced Packet Block as defined in pcapng RFC Section 4.3.
Fields§
§interface_id: u32The ID of the interface the packet was captured on.
timestamp: SystemTimeThe time the packet was captured.
captured_length: u32The length of the packet data actually captured.
original_length: u32The original length of the packet off the wire.
packet_data: &'a [u8]The captured packet data.
Trait Implementations§
Source§impl<'a> Debug for ParsedEnhancedPacket<'a>
impl<'a> Debug for ParsedEnhancedPacket<'a>
Source§impl<'a> PartialEq for ParsedEnhancedPacket<'a>
impl<'a> PartialEq for ParsedEnhancedPacket<'a>
Source§fn eq(&self, other: &ParsedEnhancedPacket<'a>) -> bool
fn eq(&self, other: &ParsedEnhancedPacket<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> PcapNgBlock<'a> for ParsedEnhancedPacket<'a>
impl<'a> PcapNgBlock<'a> for ParsedEnhancedPacket<'a>
impl<'a> Eq for ParsedEnhancedPacket<'a>
impl<'a> StructuralPartialEq for ParsedEnhancedPacket<'a>
Auto Trait Implementations§
impl<'a> Freeze for ParsedEnhancedPacket<'a>
impl<'a> RefUnwindSafe for ParsedEnhancedPacket<'a>
impl<'a> Send for ParsedEnhancedPacket<'a>
impl<'a> Sync for ParsedEnhancedPacket<'a>
impl<'a> Unpin for ParsedEnhancedPacket<'a>
impl<'a> UnsafeUnpin for ParsedEnhancedPacket<'a>
impl<'a> UnwindSafe for ParsedEnhancedPacket<'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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more