[][src]Struct pcarp::Packet

pub struct Packet<'a> {
    pub timestamp: Option<SystemTime>,
    pub interface: Option<&'a Interface>,
    pub data: &'a [u8],
}

A single captured packet.

Fields

The time at which the packet was captured. The resolution depends on the interface.

The interface used to capture this packet.

The raw packet data.

Trait Implementations

impl<'a> Clone for Packet<'a>
[src]

Performs copy-assignment from source. Read more

impl<'a> PartialEq<Packet<'a>> for Packet<'a>
[src]

impl<'a> Debug for Packet<'a>
[src]

Auto Trait Implementations

impl<'a> Send for Packet<'a>

impl<'a> Sync for Packet<'a>

Blanket Implementations

impl<T> From for T
[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

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

🔬 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, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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