[][src]Struct pcap_parser::pcap::LegacyPcapBlock

pub struct LegacyPcapBlock<'a> {
    pub ts_sec: u32,
    pub ts_usec: u32,
    pub caplen: u32,
    pub origlen: u32,
    pub data: &'a [u8],
}

Container for network data in legacy Pcap files

Fields

ts_sec: u32ts_usec: u32caplen: u32origlen: u32data: &'a [u8]

Trait Implementations

impl<'a> From<&'a LegacyPcapBlock<'a>> for PcapBlock<'a>[src]

impl<'a> From<LegacyPcapBlock<'a>> for PcapBlockOwned<'a>[src]

impl<'a> ToVec for LegacyPcapBlock<'a>[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.