Struct netscan::scan::setting::HostScanSetting
source · pub struct HostScanSetting {
pub if_index: u32,
pub targets: Vec<Host>,
pub protocol: Protocol,
pub scan_type: HostScanType,
pub concurrency: usize,
pub timeout: Duration,
pub wait_time: Duration,
pub send_rate: Duration,
pub randomize: bool,
pub minimize_packet: bool,
pub dns_map: HashMap<IpAddr, String>,
pub async_scan: bool,
}
Fields§
§if_index: u32
§targets: Vec<Host>
§protocol: Protocol
§scan_type: HostScanType
§concurrency: usize
§timeout: Duration
§wait_time: Duration
§send_rate: Duration
§randomize: bool
§minimize_packet: bool
§dns_map: HashMap<IpAddr, String>
§async_scan: bool
Implementations§
source§impl HostScanSetting
impl HostScanSetting
pub fn set_if_index(self, if_index: u32) -> Self
pub fn set_targets(self, targets: Vec<Host>) -> Self
pub fn set_protocol(self, protocol: Protocol) -> Self
pub fn set_scan_type(self, scan_type: HostScanType) -> Self
pub fn set_concurrency(self, concurrency: usize) -> Self
pub fn set_timeout(self, timeout: Duration) -> Self
pub fn set_wait_time(self, wait_time: Duration) -> Self
pub fn set_send_rate(self, send_rate: Duration) -> Self
pub fn set_randomize(self, randomize: bool) -> Self
pub fn set_minimize_packet(self, minimize_packet: bool) -> Self
pub fn set_dns_map(self, dns_map: HashMap<IpAddr, String>) -> Self
pub fn add_target(&mut self, target: Host)
pub fn set_async_scan(self, async_scan: bool) -> Self
pub fn randomize_hosts(&mut self)
pub fn randomize_ports(&mut self)
Trait Implementations§
source§impl Clone for HostScanSetting
impl Clone for HostScanSetting
source§fn clone(&self) -> HostScanSetting
fn clone(&self) -> HostScanSetting
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for HostScanSetting
impl Debug for HostScanSetting
Auto Trait Implementations§
impl Freeze for HostScanSetting
impl RefUnwindSafe for HostScanSetting
impl Send for HostScanSetting
impl Sync for HostScanSetting
impl Unpin for HostScanSetting
impl UnwindSafe for HostScanSetting
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more