pub enum Presence {
Both,
Added {
before: Coverage,
},
Removed {
after: Coverage,
},
}Expand description
Which of the two scans holds a record, and what the other one says about having looked.
A host missing from tonight’s scan is gone if tonight’s scan covered its address, and merely unobserved if it did not. The coverage travels with the presence so a consumer can tell the two apart.
Variants§
Both
Both scans have a record. The difference between them, if any, is in the delta’s change list.
Added
Only the current scan has a record, and before is what the baseline
says about whether it covered this target.
Coverage::Covered makes this a real appearance. Anything else makes
it a target the baseline never asked about.
Removed
Only the baseline has a record, and after is what the current scan says
about whether it covered this target.
Coverage::Covered makes this a real disappearance. Anything else
makes it a target the current scan never asked about.
Implementations§
Source§impl Presence
impl Presence
Sourcepub fn is_in_both(&self) -> bool
pub fn is_in_both(&self) -> bool
Whether both scans hold a record.
Sourcepub fn is_removed(&self) -> bool
pub fn is_removed(&self) -> bool
Whether the record is only in the baseline scan.
Sourcepub fn counterpart_coverage(&self) -> Option<Coverage>
pub fn counterpart_coverage(&self) -> Option<Coverage>
What the scan lacking a record says about having covered the target.
None when both scans hold one.
Sourcepub fn is_confirmed(&self) -> bool
pub fn is_confirmed(&self) -> bool
Whether the scan lacking a record is known to have covered the target, which makes an appearance or disappearance a finding about the network. True when both scans hold a record.
Trait Implementations§
impl Copy for Presence
impl Eq for Presence
impl StructuralPartialEq for Presence
Auto Trait Implementations§
impl Freeze for Presence
impl RefUnwindSafe for Presence
impl Send for Presence
impl Sync for Presence
impl Unpin for Presence
impl UnsafeUnpin for Presence
impl UnwindSafe for Presence
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