PacketMetadata

Trait PacketMetadata 

Source
pub trait PacketMetadata {
    // Required methods
    fn caplen(&self) -> u32;
    fn origlen(&self) -> u32;
    fn data(&self) -> &[u8] ;
    fn timestamp(&self) -> Timestamp;
}

Required Methods§

Source

fn caplen(&self) -> u32

Source

fn origlen(&self) -> u32

Source

fn data(&self) -> &[u8]

Source

fn timestamp(&self) -> Timestamp

Implementations on Foreign Types§

Source§

impl<'a> PacketMetadata for LegacyPcapBlock<'a>

Source§

fn timestamp(&self) -> Timestamp

Source§

fn caplen(&self) -> u32

Source§

fn origlen(&self) -> u32

Source§

fn data(&self) -> &[u8]

Source§

impl<'a> PacketMetadata for EnhancedPacketBlock<'a>

Source§

fn timestamp(&self) -> Timestamp

Source§

fn caplen(&self) -> u32

Source§

fn origlen(&self) -> u32

Source§

fn data(&self) -> &[u8]

Source§

impl<'a> PacketMetadata for SimplePacketBlock<'a>

Source§

fn timestamp(&self) -> Timestamp

Source§

fn caplen(&self) -> u32

Source§

fn origlen(&self) -> u32

Source§

fn data(&self) -> &[u8]

Implementors§