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.

Fields

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>
[src]

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

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>
[src]

Formats the value using the given formatter.