Struct pcap_parser::pcapng::Section  
source · [−]Expand description
A Section (including all blocks) from a PcapNG file
Fields
blocks: Vec<Block<'a>>The list of blocks
big_endian: boolTrue if encoding is big-endian
Implementations
sourceimpl<'a> Section<'a>
 
impl<'a> Section<'a>
sourcepub fn header(&self) -> Option<&SectionHeaderBlock<'_>>
 
pub fn header(&self) -> Option<&SectionHeaderBlock<'_>>
Returns the section header
sourcepub fn iter(&'a self) -> SectionBlockIterator<'a>ⓘNotable traits for SectionBlockIterator<'a>impl<'a> Iterator for SectionBlockIterator<'a>    type Item = PcapBlock<'a>;
 
pub fn iter(&'a self) -> SectionBlockIterator<'a>ⓘNotable traits for SectionBlockIterator<'a>impl<'a> Iterator for SectionBlockIterator<'a>    type Item = PcapBlock<'a>;
Returns an iterator over the section blocks
sourcepub fn iter_interfaces(&'a self) -> InterfaceBlockIterator<'a>ⓘNotable traits for InterfaceBlockIterator<'a>impl<'a> Iterator for InterfaceBlockIterator<'a>    type Item = &'a InterfaceDescriptionBlock<'a>;
 
pub fn iter_interfaces(&'a self) -> InterfaceBlockIterator<'a>ⓘNotable traits for InterfaceBlockIterator<'a>impl<'a> Iterator for InterfaceBlockIterator<'a>    type Item = &'a InterfaceDescriptionBlock<'a>;
Returns an iterator over the interface description blocks
Auto Trait Implementations
impl<'a> RefUnwindSafe for Section<'a>
impl<'a> Send for Section<'a>
impl<'a> Sync for Section<'a>
impl<'a> Unpin for Section<'a>
impl<'a> UnwindSafe for Section<'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