Struct rpcap::CapturedPacket [] [src]

pub struct CapturedPacket<'a> {
    pub time: SystemTime,
    pub data: &'a [u8],
    pub orig_len: usize,

The CapturedPacket struct contains information about a single captured packet.


The time when the packet was captured.

The contents of the packet (possibly truncated to orig_len bytes during capture). Depending on the Linktype of the capture, there might be completely different data in this packet. The user of this library is responsible for interpreting the contents correctly.

The size of the packet as it was on the wire. Might be larger than the size of data, in which case data was truncated and is incomplete.

Trait Implementations

impl<'a> Eq for CapturedPacket<'a>

impl<'a> PartialEq for CapturedPacket<'a>

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<'a> Debug for CapturedPacket<'a>

Formats the value using the given formatter.