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§
Trait Implementations§
Source§impl<'a> From<&'a LegacyPcapBlock<'a>> for PcapBlock<'a>
impl<'a> From<&'a LegacyPcapBlock<'a>> for PcapBlock<'a>
Source§fn from(b: &'a LegacyPcapBlock<'_>) -> PcapBlock<'a>
fn from(b: &'a LegacyPcapBlock<'_>) -> PcapBlock<'a>
Converts to this type from the input type.
Source§impl<'a> From<&'a PcapHeader> for PcapBlock<'a>
impl<'a> From<&'a PcapHeader> for PcapBlock<'a>
Source§fn 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> Freeze for PcapBlock<'a>
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§
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