Struct pcap_parser::pcapng::SimplePacketBlock[][src]

pub struct SimplePacketBlock<'a> {
    pub block_type: u32,
    pub block_len1: u32,
    pub origlen: u32,
    pub data: &'a [u8],
    pub block_len2: u32,
}

The Simple Packet Block (SPB) is a lightweight container for storing the packets coming from the network.

This struct is a thin abstraction layer, and stores the raw block data. For ex the data field is stored with the padding. It implements the PcapNGPacketBlock trait, which provides helper functions.

Fields

block_type: u32

Block type (little endian)

block_len1: u32origlen: u32

Original packet length

data: &'a [u8]block_len2: u32

Trait Implementations

impl<'a> Debug for SimplePacketBlock<'a>[src]

impl<'a> PcapNGPacketBlock for SimplePacketBlock<'a>[src]

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

Auto Trait Implementations

impl<'a> RefUnwindSafe for SimplePacketBlock<'a>

impl<'a> Send for SimplePacketBlock<'a>

impl<'a> Sync for SimplePacketBlock<'a>

impl<'a> Unpin for SimplePacketBlock<'a>

impl<'a> UnwindSafe for SimplePacketBlock<'a>

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> Conv for T

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T where
    T: ?Sized

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

impl<T> TryConv for T

impl<T> TryConv for T

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.