[][src]Struct pcap_parser::pcap::PcapHeader

pub struct PcapHeader {
    pub magic_number: u32,
    pub version_major: u16,
    pub version_minor: u16,
    pub thiszone: i32,
    pub sigfigs: u32,
    pub snaplen: u32,
    pub network: i32,
}

Fields

magic_number: u32version_major: u16version_minor: u16thiszone: i32sigfigs: u32snaplen: u32

max len of captured packets, in octets

network: i32

Data link type

Methods

impl PcapHeader
[src]

pub fn new() -> PcapHeader
[src]

pub fn to_string(&self) -> Vec<u8>
[src]

Trait Implementations

impl PartialEq<PcapHeader> for PcapHeader
[src]

impl Debug for PcapHeader
[src]

Auto Trait Implementations

impl Send for PcapHeader

impl Sync for PcapHeader

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.