[−][src]Struct pcap_parser::pcapng::Section
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
impl<'a> Section<'a>[src]
pub fn header(&self) -> Option<&SectionHeaderBlock<'_>>[src]
Returns the section header
pub fn iter(&'a self) -> SectionBlockIterator<'a>ⓘNotable traits for SectionBlockIterator<'a>
impl<'a> Iterator for SectionBlockIterator<'a> type Item = PcapBlock<'a>;[src]
Notable traits for SectionBlockIterator<'a>
impl<'a> Iterator for SectionBlockIterator<'a> type Item = PcapBlock<'a>;Returns an iterator over the section blocks
pub fn iter_interfaces(&'a self) -> InterfaceBlockIterator<'a>ⓘNotable traits for InterfaceBlockIterator<'a>
impl<'a> Iterator for InterfaceBlockIterator<'a> type Item = &'a InterfaceDescriptionBlock<'a>;[src]
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>[src]
impl<'a> Send for Section<'a>[src]
impl<'a> Sync for Section<'a>[src]
impl<'a> Unpin for Section<'a>[src]
impl<'a> UnwindSafe for Section<'a>[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,