pub struct PacketInfo {
pub timestamp_ns: u64,
pub captured_len: u32,
pub original_len: u32,
pub flow_key: Option<FlowKey>,
}Expand description
Parsed metadata for a single packet.
Fields§
§timestamp_ns: u64Timestamp in nanoseconds since the Unix epoch.
captured_len: u32Number of bytes captured (on-wire may be larger if truncated by snap length).
original_len: u32On-wire packet length.
flow_key: Option<FlowKey>Parsed 5-tuple, if the packet contains an IP layer with a transport header.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PacketInfo
impl RefUnwindSafe for PacketInfo
impl Send for PacketInfo
impl Sync for PacketInfo
impl Unpin for PacketInfo
impl UnsafeUnpin for PacketInfo
impl UnwindSafe for PacketInfo
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
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