pub struct ScanRecord {
pub ip: String,
pub port: Option<u16>,
pub proto: &'static str,
pub latency_ms: u128,
pub status: &'static str,
}Expand description
One scan result in a normalized, machine-readable shape.
The fields are a superset of what a port scan and an address scan each
produce: port is present for port scans and omitted for host discovery.
Fields§
§ip: StringTarget address (resolved IP for a port scan, host IP for discovery).
port: Option<u16>Open port; omitted for address (host-availability) scans.
proto: &'static strTransport protocol of the probe.
latency_ms: u128Wall-clock latency of the probe, in milliseconds.
status: &'static str"open" for an open port, "up" for an available host.
Trait Implementations§
Source§impl Debug for ScanRecord
impl Debug for ScanRecord
Auto Trait Implementations§
impl Freeze for ScanRecord
impl RefUnwindSafe for ScanRecord
impl Send for ScanRecord
impl Sync for ScanRecord
impl Unpin for ScanRecord
impl UnsafeUnpin for ScanRecord
impl UnwindSafe for ScanRecord
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more