Struct netscan::HostScanner[][src]

pub struct HostScanner { /* fields omitted */ }

Structure for host scan

Should be constructed using HostScanner::new

Implementations

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

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,