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

Run scan with current settings

Results are stored in HostScanner::scan_result

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.