pub enum PcapInputSource {
Device {
name: String,
local_network: String,
},
File {
path: PathBuf,
local_network: String,
},
}
Expand description
Determines the input source for network packets.
Variants§
Device
Fields
Use the specified device for packet input.
File
Fields
Use the given file for packet input.
Trait Implementations§
source§impl Clone for PcapInputSource
impl Clone for PcapInputSource
source§fn clone(&self) -> PcapInputSource
fn clone(&self) -> PcapInputSource
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more