pub struct Packet<'a> {
pub timestamp: Option<SystemTime>,
pub interface: Option<&'a Interface>,
pub data: &'a [u8],
}
Expand description
A single captured packet.
Fields
timestamp: Option<SystemTime>
The time at which the packet was captured. The resolution depends on the interface.
interface: Option<&'a Interface>
The interface used to capture this packet.
data: &'a [u8]
The raw packet data.
Trait Implementations
impl<'a> StructuralPartialEq for Packet<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Packet<'a>
impl<'a> Send for Packet<'a>
impl<'a> Sync for Packet<'a>
impl<'a> Unpin for Packet<'a>
impl<'a> UnwindSafe for Packet<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more