Enum pcap_parser::PcapBlock
source · [−]pub enum PcapBlock<'a> {
Legacy(&'a LegacyPcapBlock<'a>),
LegacyHeader(&'a PcapHeader),
NG(&'a Block<'a>),
}
Expand description
A block from a Pcap or PcapNG file
Variants
Legacy(&'a LegacyPcapBlock<'a>)
LegacyHeader(&'a PcapHeader)
NG(&'a Block<'a>)
Trait Implementations
sourceimpl<'a> From<&'a LegacyPcapBlock<'a>> for PcapBlock<'a>
impl<'a> From<&'a LegacyPcapBlock<'a>> for PcapBlock<'a>
sourcefn from(b: &'a LegacyPcapBlock<'_>) -> PcapBlock<'a>
fn from(b: &'a LegacyPcapBlock<'_>) -> PcapBlock<'a>
Converts to this type from the input type.
sourceimpl<'a> From<&'a PcapHeader> for PcapBlock<'a>
impl<'a> From<&'a PcapHeader> for PcapBlock<'a>
sourcefn from(b: &'a PcapHeader) -> PcapBlock<'a>
fn from(b: &'a PcapHeader) -> PcapBlock<'a>
Converts to this type from the input type.
Auto Trait Implementations
impl<'a> RefUnwindSafe for PcapBlock<'a>
impl<'a> Send for PcapBlock<'a>
impl<'a> Sync for PcapBlock<'a>
impl<'a> Unpin for PcapBlock<'a>
impl<'a> UnwindSafe for PcapBlock<'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