pub enum EvidenceSource {
Host,
Intermediary(IpAddr),
Withheld,
}Expand description
Who sent a piece of evidence about a host.
One value, so a withheld sender carrying an address cannot be built, as with
Hop.
Not #[non_exhaustive]: the three variants partition the cases, and a reader must
handle each without a wildcard arm.
Variants§
Host
The host the evidence is about sent it, which is the strongest claim a reason can make.
Intermediary(IpAddr)
Something in the path sent it about the host, from this address: a router or firewall reporting the host unreachable, or a NAT answering on its behalf.
Withheld
Something in the path sent it about the host, from an address the scan’s exclusions forbid it to report.
Second-hand evidence whose sender the scan will not name. The finding about the host is kept.
For reading a record back; a scan records evidence as it arrived and withholds the sender afterwards.
Implementations§
Source§impl EvidenceSource
impl EvidenceSource
Sourcepub fn address(&self) -> Option<IpAddr>
pub fn address(&self) -> Option<IpAddr>
The address that sent the evidence, or None where the host sent it
or the sender is withheld.
Sourcepub fn is_withheld(&self) -> bool
pub fn is_withheld(&self) -> bool
Whether the evidence came second-hand from an address the scan may not report.
The one case where address is None but the host did not
answer for itself.
Trait Implementations§
Source§impl Clone for EvidenceSource
impl Clone for EvidenceSource
impl Copy for EvidenceSource
Source§impl Debug for EvidenceSource
impl Debug for EvidenceSource
impl Eq for EvidenceSource
Source§impl Hash for EvidenceSource
impl Hash for EvidenceSource
Source§impl PartialEq for EvidenceSource
impl PartialEq for EvidenceSource
impl StructuralPartialEq for EvidenceSource
Auto Trait Implementations§
impl Freeze for EvidenceSource
impl RefUnwindSafe for EvidenceSource
impl Send for EvidenceSource
impl Sync for EvidenceSource
impl Unpin for EvidenceSource
impl UnsafeUnpin for EvidenceSource
impl UnwindSafe for EvidenceSource
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