pub fn new(pc: ThreadingContext, device: &str) -> Scanner {
        Scanner {
            pc:            pc,
            device:        device.to_string(),
            end_indicator: Arc::new(Mutex::new(false))
        }
    }
/// Create a new PCAP scanner for a given device.
Create a new PCAP scanner for a given device.
Create a new PCAP scanner for a given device .
pub fn new(pc: ThreadingContext, device: &str) -> Scanner {
        Scanner {
            pc:            pc,
            device:        device.to_string(),
            end_indicator: Arc::new(Mutex::new(false))
        }
    }
pub fn new ( pc : ThreadingContext , device : & str ) -> Scanner { Scanner { pc : pc , device : device . to_string ( ) , end_indicator : Arc :: new ( Mutex :: new ( false ) ) } }
Create a new PCAP scanner for a given device.
Create a new PCAP scanner for a given device .
pc
ThreadingContext
device
&str
pc
ThreadingContext
device
&str