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: u32§block_len1: u32§bom: u32Byte-order magic
major_version: u16§minor_version: u16§section_len: i64§options: Vec<PcapNGOption<'a>>§block_len2: u32Implementations§
source§impl<'a> SectionHeaderBlock<'a>
impl<'a> SectionHeaderBlock<'a>
pub fn big_endian(&self) -> bool
Trait Implementations§
source§impl<'a> Debug for SectionHeaderBlock<'a>
impl<'a> Debug for SectionHeaderBlock<'a>
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more