[][src]Struct pcap_file::pcapng::SectionHeaderBlock

pub struct SectionHeaderBlock<'a> {
    pub magic: u32,
    pub major_version: u16,
    pub minor_version: u16,
    pub section_length: i64,
    pub options: Vec<SectionHeaderOption<'a>>,
}

Section Header Block: it defines the most important characteristics of the capture file.

Fields

magic: u32

Magic number, whose value is 0x1A2B3C4D. This number can be used to distinguish sections that have been saved on little-endian machines from the ones saved on big-endian machines.

major_version: u16

Major version of the format. Current value is 1.

minor_version: u16

Minor version of the format. Current value is 0.

section_length: i64

Length in bytes of the following section excluding this block.

This block can be used to skip the section for faster navigation in large files. Length of -1i64 means that the length is unspecified.

options: Vec<SectionHeaderOption<'a>>

Methods

impl<'a> SectionHeaderBlock<'a>[src]

pub fn into_owned(self) -> SectionHeaderBlock<'static>[src]

Returns a version of self with all fields converted to owning versions.

impl<'a> SectionHeaderBlock<'a>[src]

Trait Implementations

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

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

Auto Trait Implementations

impl<'a> Send for SectionHeaderBlock<'a>

impl<'a> Sync for SectionHeaderBlock<'a>

impl<'a> Unpin for SectionHeaderBlock<'a>

impl<'a> UnwindSafe for SectionHeaderBlock<'a>

impl<'a> RefUnwindSafe for SectionHeaderBlock<'a>

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]