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§
Trait Implementations§
source§impl<'a> From<Block<'a>> for PcapBlockOwned<'a>
impl<'a> From<Block<'a>> for PcapBlockOwned<'a>
source§fn from(b: Block<'a>) -> PcapBlockOwned<'a>
fn from(b: Block<'a>) -> PcapBlockOwned<'a>
Converts to this type from the input type.
source§impl<'a> From<LegacyPcapBlock<'a>> for PcapBlockOwned<'a>
impl<'a> From<LegacyPcapBlock<'a>> for PcapBlockOwned<'a>
source§fn from(b: LegacyPcapBlock<'a>) -> PcapBlockOwned<'a>
fn from(b: LegacyPcapBlock<'a>) -> PcapBlockOwned<'a>
Converts to this type from the input type.
source§impl<'a> From<PcapHeader> for PcapBlockOwned<'a>
impl<'a> From<PcapHeader> for PcapBlockOwned<'a>
source§fn 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§
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