Trait pcap_parser::Capture

source ·
pub trait Capture {
    // Required methods
    fn get_datalink(&self) -> Linktype;
    fn get_snaplen(&self) -> u32;
    fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = PcapBlock<'_>> + 'a>;
}
Expand description

Generic interface for PCAP or PCAPNG file access

Required Methods§

source

fn get_snaplen(&self) -> u32

source

fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = PcapBlock<'_>> + 'a>

Implementors§

source§

impl<'a> Capture for PcapCapture<'a>