[][src]Struct pcap_parser::pcapng::SectionHeaderBlock

pub struct SectionHeaderBlock<'a> {
    pub block_type: u32,
    pub block_len1: u32,
    pub bom: u32,
    pub major_version: u16,
    pub minor_version: u16,
    pub section_len: i64,
    pub options: Vec<PcapNGOption<'a>>,
    pub block_len2: u32,
}

Fields

block_type: u32block_len1: u32bom: u32

Byte-order magic

major_version: u16minor_version: u16section_len: i64options: Vec<PcapNGOption<'a>>block_len2: u32

Implementations

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

pub fn is_bigendian(&self) -> bool[src]

Trait Implementations

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

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

pub fn fix(&mut self)[src]

Check and correct all fields: use magic, version and fix lengths fields

Auto Trait Implementations

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, 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.