Struct netscan::HostScanner [−][src]
pub struct HostScanner { /* fields omitted */ }
Structure for host scan
Should be constructed using HostScanner::new
Implementations
impl HostScanner
[src]
impl HostScanner
[src]pub fn new() -> NewHostScannerResult
[src]
Construct new HostScanner
pub fn add_ipaddr(&mut self, ipaddr: &str)
[src]
Add target host to list
pub fn set_timeout(&mut self, timeout: Duration)
[src]
Set scan timeout
pub fn set_wait_time(&mut self, wait_time: Duration)
[src]
Set scan wait time
pub fn set_src_ipaddr(&mut self, src_ipaddr: IpAddr)
[src]
Set source IP Address
pub fn get_src_ipaddr(&mut self) -> IpAddr
[src]
Get source IP Address
pub fn get_target_hosts(&mut self) -> Vec<IpAddr>
[src]
Get target hosts
pub fn get_timeout(&mut self) -> Duration
[src]
Get timeout
pub fn get_wait_time(&mut self) -> Duration
[src]
Get wait time
pub fn run_scan(&mut self)
[src]
Run scan with current settings
Results are stored in HostScanner::scan_result
pub fn get_result(&mut self) -> HostScanResult
[src]
Return scan result
Auto Trait Implementations
impl RefUnwindSafe for HostScanner
impl RefUnwindSafe for HostScanner
impl Send for HostScanner
impl Send for HostScanner
impl Sync for HostScanner
impl Sync for HostScanner
impl Unpin for HostScanner
impl Unpin for HostScanner
impl UnwindSafe for HostScanner
impl UnwindSafe for HostScanner