pub struct Section<'a> {
    pub blocks: Vec<Block<'a>>,
    pub big_endian: bool,
}
Expand description

A Section (including all blocks) from a PcapNG file

Fields

blocks: Vec<Block<'a>>

The list of blocks

big_endian: bool

True if encoding is big-endian

Implementations

Returns the section header

Returns an iterator over the section blocks

Returns an iterator over the interface description blocks

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.