pub struct PortScanner {
pub scan_setting: PortScanSetting,
pub tx: Arc<Mutex<Sender<SocketAddr>>>,
pub rx: Arc<Mutex<Receiver<SocketAddr>>>,
}Expand description
Port Scanner
Fields§
§scan_setting: PortScanSettingScan Setting
tx: Arc<Mutex<Sender<SocketAddr>>>Sender for progress messaging
rx: Arc<Mutex<Receiver<SocketAddr>>>Receiver for progress messaging
Implementations§
Source§impl PortScanner
impl PortScanner
Sourcepub fn new(scan_setting: PortScanSetting) -> Self
pub fn new(scan_setting: PortScanSetting) -> Self
Create new PortScanner
Sourcepub fn get_progress_receiver(&self) -> Arc<Mutex<Receiver<SocketAddr>>>
pub fn get_progress_receiver(&self) -> Arc<Mutex<Receiver<SocketAddr>>>
Get progress receiver
Sourcepub fn scan(&self) -> ScanResult
pub fn scan(&self) -> ScanResult
Scan ports
Trait Implementations§
Source§impl Clone for PortScanner
impl Clone for PortScanner
Source§fn clone(&self) -> PortScanner
fn clone(&self) -> PortScanner
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PortScanner
impl RefUnwindSafe for PortScanner
impl Send for PortScanner
impl Sync for PortScanner
impl Unpin for PortScanner
impl UnwindSafe for PortScanner
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