Struct pcap_parser::pcapng::SectionHeaderBlock
source · [−]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,
}Expand description
The Section Header Block (SHB) identifies the beginning of a section of the capture capture file.
The Section Header Block does not contain data but it rather identifies a list of blocks (interfaces, packets) that are logically correlated.
Fields
block_type: u32block_len1: u32bom: u32Byte-order magic
major_version: u16minor_version: u16section_len: i64options: Vec<PcapNGOption<'a>>block_len2: u32Implementations
sourceimpl<'a> SectionHeaderBlock<'a>
impl<'a> SectionHeaderBlock<'a>
pub fn big_endian(&self) -> bool
Trait Implementations
sourceimpl<'a> Debug for SectionHeaderBlock<'a>
impl<'a> Debug for SectionHeaderBlock<'a>
sourceimpl<'a> ToVec for SectionHeaderBlock<'a>
This is supported on crate feature serialize only.
impl<'a> ToVec for SectionHeaderBlock<'a>
This is supported on crate feature
serialize only.Auto Trait Implementations
impl<'a> RefUnwindSafe for SectionHeaderBlock<'a>
impl<'a> Send for SectionHeaderBlock<'a>
impl<'a> Sync for SectionHeaderBlock<'a>
impl<'a> Unpin for SectionHeaderBlock<'a>
impl<'a> UnwindSafe for SectionHeaderBlock<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more