pub struct Section<'a> {
pub blocks: Vec<Block<'a>>,
pub big_endian: bool,
}
Expand description
A Section (including all blocks) from a PcapNG file
Fields§
§blocks: Vec<Block<'a>>
The list of blocks
big_endian: bool
True if encoding is big-endian
Implementations§
Source§impl<'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> ⓘ
pub fn iter(&'a self) -> SectionBlockIterator<'a> ⓘ
Returns an iterator over the section blocks
Sourcepub fn iter_interfaces(&'a self) -> InterfaceBlockIterator<'a> ⓘ
pub fn iter_interfaces(&'a self) -> InterfaceBlockIterator<'a> ⓘ
Returns an iterator over the interface description blocks
Auto Trait Implementations§
impl<'a> Freeze for Section<'a>
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§
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