pub struct CapturedPacket {
pub data: Vec<u8>,
pub timestamp: SystemTime,
pub original_len: u32,
}Expand description
A captured link-layer frame with the timestamp reported by libpcap/Npcap.
Fields§
§data: Vec<u8>§timestamp: SystemTime§original_len: u32Trait Implementations§
Source§impl Clone for CapturedPacket
impl Clone for CapturedPacket
Source§fn clone(&self) -> CapturedPacket
fn clone(&self) -> CapturedPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CapturedPacket
impl RefUnwindSafe for CapturedPacket
impl Send for CapturedPacket
impl Sync for CapturedPacket
impl Unpin for CapturedPacket
impl UnsafeUnpin for CapturedPacket
impl UnwindSafe for CapturedPacket
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