Struct netscan::HostScanner [−][src]
pub struct HostScanner {
pub src_ip: IpAddr,
pub dst_ips: Vec<IpAddr>,
pub timeout: Duration,
pub wait_time: Duration,
pub scan_result: HostScanResult,
}
Expand description
Structure for host scan with various options.
Should be constructed using HostScanner::new
Fields
src_ip: IpAddr
Source IP Address
dst_ips: Vec<IpAddr>
List of target host
timeout: Duration
Timeout setting of host scan
wait_time: Duration
Timeout setting of host scan
scan_result: HostScanResult
Result of host scan
Implementations
Construct new HostScanner
Set source IP address
Add destination host to list
Set the destination host list (Replace the entire destination list)
Set scan timeout
Set scan wait time
Set scan result
Get source IP Address
Get destination hosts
Get timeout
Get wait time
Get scan result
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for HostScanner
impl Send for HostScanner
impl Sync for HostScanner
impl Unpin for HostScanner
impl UnwindSafe for HostScanner
Blanket Implementations
Mutably borrows from an owned value. Read more