#[non_exhaustive]pub enum HostIdentity {
PrimaryAddress,
AnyAddress,
Hardware,
}Expand description
What makes two records, in two different scans, the same host.
The default is AnyAddress, which follows a dual-stack
host keyed under IPv4 one night and IPv6 the next.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
PrimaryAddress
Two records are the same host when their primary addresses match.
The strictest policy. A host whose primary address changed reads as one host gone and another arrived, which is right when the address is the asset, as in an external scan of a public range.
AnyAddress
Two records are the same host when they share any address.
Follows a host whose primary address was re-picked between scans, as happens when a global address displaces a link-local one or a dual-stack host answers over the other family first.
Hardware
As AnyAddress, and two records are also the same
host when they share a hardware address.
Follows a machine across a DHCP lease change on a segment where the scan reached the link layer. Not the default because a hardware address is not always the host’s own: a router answering ARP for the machines behind it lends them its address, and under this policy they fold into one.
Trait Implementations§
Source§impl Clone for HostIdentity
impl Clone for HostIdentity
impl Copy for HostIdentity
Source§impl Debug for HostIdentity
impl Debug for HostIdentity
Source§impl Default for HostIdentity
impl Default for HostIdentity
impl Eq for HostIdentity
Source§impl Hash for HostIdentity
impl Hash for HostIdentity
Source§impl PartialEq for HostIdentity
impl PartialEq for HostIdentity
impl StructuralPartialEq for HostIdentity
Auto Trait Implementations§
impl Freeze for HostIdentity
impl RefUnwindSafe for HostIdentity
impl Send for HostIdentity
impl Sync for HostIdentity
impl Unpin for HostIdentity
impl UnsafeUnpin for HostIdentity
impl UnwindSafe for HostIdentity
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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> ⓘ
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> ⓘ
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