pub struct PcapNgSection<'a> {
pub header: ParsedSectionHeader,
pub interfaces: Vec<ParsedInterfaceDescription<'a>>,
/* private fields */
}Expand description
A parsed pcapng section.
Provides an iterator to iterate over the Enhanced Packet Blocks.
Fields§
§header: ParsedSectionHeaderThe Section Header Block as defined in pcapng RFC Section 4.1.
interfaces: Vec<ParsedInterfaceDescription<'a>>The Interface Description Blocks as defined in pcapng RFC Section 4.2.
Implementations§
Source§impl<'a> PcapNgSection<'a>
impl<'a> PcapNgSection<'a>
Sourcepub fn packet_blocks(&self) -> PcapNgPacketIter<'a> ⓘ
pub fn packet_blocks(&self) -> PcapNgPacketIter<'a> ⓘ
Returns an iterator over the packet blocks in the section.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PcapNgSection<'a>
impl<'a> RefUnwindSafe for PcapNgSection<'a>
impl<'a> Send for PcapNgSection<'a>
impl<'a> Sync for PcapNgSection<'a>
impl<'a> Unpin for PcapNgSection<'a>
impl<'a> UnsafeUnpin for PcapNgSection<'a>
impl<'a> UnwindSafe for PcapNgSection<'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
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more