[][src]Struct pcarp::block::InterfaceStatistics

pub struct InterfaceStatistics<'a> {
    pub interface_id: InterfaceId,
    pub timestamp_high: u32,
    pub timestamp_low: u32,
    pub options: &'a [u8],
}

Defines how to store some statistical data (e.g. packet dropped, etc) which can be useful to understand the conditions in which the capture has been made. If this appears in a file, an Interface Description Block is also required, before this block.

The Interface Statistics Block (ISB) contains the capture statistics for a given interface and it is optional. The statistics are referred to the interface defined in the current Section identified by the Interface ID field. An Interface Statistics Block is normally placed at the end of the file, but no assumptions can be taken about its position - it can even appear multiple times for the same interface.

This documentation is copyright (c) 2018 IETF Trust and the persons identified as the authors of this document. All rights reserved. Please see the linked document for the full copyright notice.

Fields

interface_id: InterfaceId

Specifies the interface these statistics refers to; the correct interface will be the one whose Interface Description Block (within the current Section of the file) is identified by same number (see Section 4.2) of this field.

timestamp_high: u32

Time this statistics refers to. The format of the timestamp is the same already defined in the Enhanced Packet Block (Section 4.3).

timestamp_low: u32options: &'a [u8]

Optionally, a list of options (formatted according to the rules defined in Section 3.5) can be present.

Trait Implementations

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

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

impl<'a> From<InterfaceStatistics<'a>> for Block<'a>[src]

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

impl<'a> StructuralPartialEq for InterfaceStatistics<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for InterfaceStatistics<'a>

impl<'a> Send for InterfaceStatistics<'a>

impl<'a> Sync for InterfaceStatistics<'a>

impl<'a> Unpin for InterfaceStatistics<'a>

impl<'a> UnwindSafe for InterfaceStatistics<'a>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.