[][src]Struct pcap_parser::pcapng::Section

pub struct Section<'a> {
    pub blocks: Vec<Block<'a>>,
    pub big_endian: bool,
}

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

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.