Struct netscan::AsyncHostScanner [−][src]
pub struct AsyncHostScanner {
pub src_ip: IpAddr,
pub dst_ips: Vec<IpAddr>,
pub timeout: Duration,
pub wait_time: Duration,
pub scan_result: HostScanResult,
}
Expand description
Structure for async host scan with various options.
Currently only Unix-Like OS is supported.
Should be constructed using AsyncHostScanner::new
Fields
src_ip: IpAddr
Source IP Address
dst_ips: Vec<IpAddr>
Destination IP Addresses
timeout: Duration
Timeout setting of host scan
wait_time: Duration
Timeout setting of host scan
scan_result: HostScanResult
Result of host scan
Implementations
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 AsyncHostScanner
impl Send for AsyncHostScanner
impl Sync for AsyncHostScanner
impl Unpin for AsyncHostScanner
impl UnwindSafe for AsyncHostScanner
Blanket Implementations
Mutably borrows from an owned value. Read more