Struct pcap::PacketHeader [] [src]

pub struct PacketHeader {
    pub ts: timeval,
    pub caplen: u32,
    pub len: u32,
}

Represents a packet header provided by pcap, including the timeval, caplen and len.

Fields

ts: timeval caplen: u32 len: u32

Trait Implementations

impl Clone for PacketHeader
[src]

fn clone(&self) -> PacketHeader

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Copy for PacketHeader
[src]

impl Debug for PacketHeader
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.