Struct pcap::PacketHeader
source · [−]Expand description
Represents a packet header provided by pcap, including the timeval, caplen and len.
Fields
ts: timeval
The time when the packet was captured
caplen: u32
The number of bytes of the packet that are available from the capture
len: u32
The length of the packet, in bytes (which might be more than the number of bytes available from the capture, if the length of the packet is larger than the maximum number of bytes to capture)
Trait Implementations
sourceimpl Clone for PacketHeader
impl Clone for PacketHeader
sourcefn clone(&self) -> PacketHeader
fn clone(&self) -> PacketHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PacketHeader
impl Debug for PacketHeader
sourceimpl PartialEq<PacketHeader> for PacketHeader
impl PartialEq<PacketHeader> for PacketHeader
impl Copy for PacketHeader
impl Eq for PacketHeader
Auto Trait Implementations
impl RefUnwindSafe for PacketHeader
impl Send for PacketHeader
impl Sync for PacketHeader
impl Unpin for PacketHeader
impl UnwindSafe for PacketHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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