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>> + 'a>;
}Expand description
Generic interface for PCAP or PCAPNG file access
Required Methods§
fn get_datalink(&self) -> Linktype
fn get_snaplen(&self) -> u32
fn iter<'a>(&'a self) -> Box<dyn Iterator<Item = PcapBlock<'a>> + 'a>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".