[][src]Enum pcap_parser::data::PacketData

pub enum PacketData<'a> {
    L2(&'a [u8]),
    L3(u16&'a [u8]),
    L4(u8&'a [u8]),
    Unsupported(&'a [u8]),
}

Contents of a pcap/pcap-ng block. This can be network data, USB, etc.

Variants

L2(&'a [u8])L3(u16&'a [u8])L4(u8&'a [u8])Unsupported(&'a [u8])

Auto Trait Implementations

impl<'a> Sync for PacketData<'a>

impl<'a> Unpin for PacketData<'a>

impl<'a> Send for PacketData<'a>

impl<'a> UnwindSafe for PacketData<'a>

impl<'a> RefUnwindSafe for PacketData<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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