pub struct ScanResult {
pub hosts: Vec<Host>,
pub scan_time: Duration,
pub scan_status: ScanStatus,
pub fingerprints: Vec<PacketFrame>,
}Expand description
Result of scan
Fields§
§hosts: Vec<Host>List of scanned Host info and their respective ports
scan_time: DurationTime taken to scan
scan_status: ScanStatusStatus of the scan task
fingerprints: Vec<PacketFrame>Captured packet fingerprints
Implementations§
Source§impl ScanResult
impl ScanResult
pub fn new() -> ScanResult
pub fn error(message: String) -> ScanResult
Sourcepub fn get_open_port_numbers(&self, ip_addr: IpAddr) -> Vec<u16>
pub fn get_open_port_numbers(&self, ip_addr: IpAddr) -> Vec<u16>
Get open ports of the specified IP address from the scan results
Sourcepub fn get_syn_ack_fingerprint(
&self,
ip_addr: IpAddr,
port: u16,
) -> Option<PacketFrame>
pub fn get_syn_ack_fingerprint( &self, ip_addr: IpAddr, port: u16, ) -> Option<PacketFrame>
Get open port fingerprint
pub fn get_host(&self, ip_addr: IpAddr) -> Option<Host>
pub fn sort_hosts(&mut self)
pub fn sort_ports(&mut self)
Trait Implementations§
Source§impl Clone for ScanResult
impl Clone for ScanResult
Source§fn clone(&self) -> ScanResult
fn clone(&self) -> ScanResult
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 ScanResult
impl RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl UnwindSafe for ScanResult
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