[][src]Trait pcap_parser::Capture

pub trait Capture {
    fn get_datalink(&self) -> Linktype;
fn get_snaplen(&self) -> u32;
fn iter_packets<'a>(&'a self) -> Box<dyn Iterator<Item = Packet> + 'a>; }

Generic interface for PCAP or PCAPNG file access

Required methods

fn get_snaplen(&self) -> u32

fn iter_packets<'a>(&'a self) -> Box<dyn Iterator<Item = Packet> + 'a>

Loading content...

Implementors

impl<'a> Capture for PcapCapture<'a>[src]

impl<'a> Capture for PcapNGCapture<'a>[src]

Loading content...