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