[][src]Enum pcap_parser::pcapng::Block

pub enum Block<'a> {
    SectionHeader(SectionHeaderBlock<'a>),
    InterfaceDescription(InterfaceDescriptionBlock<'a>),
    EnhancedPacket(EnhancedPacketBlock<'a>),
    SimplePacket(SimplePacketBlock<'a>),
    NameResolution(NameResolutionBlock<'a>),
    InterfaceStatistics(InterfaceStatisticsBlock<'a>),
    SystemdJournalExport(SystemdJournalExportBlock<'a>),
    DecryptionSecrets(DecryptionSecretsBlock<'a>),
    Custom(CustomBlock<'a>),
    Unknown(UnknownBlock<'a>),
}

A block from a PcapNG file

Variants

SectionHeader(SectionHeaderBlock<'a>)
InterfaceDescription(InterfaceDescriptionBlock<'a>)
EnhancedPacket(EnhancedPacketBlock<'a>)
SimplePacket(SimplePacketBlock<'a>)
NameResolution(NameResolutionBlock<'a>)
InterfaceStatistics(InterfaceStatisticsBlock<'a>)
SystemdJournalExport(SystemdJournalExportBlock<'a>)
DecryptionSecrets(DecryptionSecretsBlock<'a>)
Custom(CustomBlock<'a>)
Unknown(UnknownBlock<'a>)

Implementations

impl<'a> Block<'a>[src]

pub fn is_data_block(&self) -> bool[src]

Returns true if blocks contains a network packet

pub fn magic(&self) -> u32[src]

Return the normalized magic number of the block

Trait Implementations

impl<'a> From<&'a Block<'a>> for PcapBlock<'a>[src]

impl<'a> From<Block<'a>> for PcapBlockOwned<'a>[src]

impl<'a> ToVec for Block<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Block<'a>[src]

impl<'a> Send for Block<'a>[src]

impl<'a> Sync for Block<'a>[src]

impl<'a> Unpin for Block<'a>[src]

impl<'a> UnwindSafe for Block<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.