pub struct HostDelta { /* private fields */ }Expand description
One host, as the two scans hold it.
Keyed by address, which is the current scan’s primary
address where it has a record and the baseline’s where it does not.
Implementations§
Source§impl HostDelta
impl HostDelta
Sourcepub fn presence(&self) -> Presence
pub fn presence(&self) -> Presence
Which scans hold a record for this host, and what the other one says about having covered its address.
Sourcepub fn baseline(&self) -> Option<&Host>
pub fn baseline(&self) -> Option<&Host>
The baseline scan’s view of this host, if it has one.
Where the baseline held more than one record for it, this is the records
merged with Host::merge. See is_regrouped.
Sourcepub fn current(&self) -> Option<&Host>
pub fn current(&self) -> Option<&Host>
The current scan’s view of this host, if it has one, merged the same way.
Sourcepub fn records(&self) -> (usize, usize)
pub fn records(&self) -> (usize, usize)
How many records the baseline held for this host, and how many the current scan holds.
(1, 1) in the ordinary case, and (0, 1) or (1, 0) for a host only
one scan has. Anything else is a regrouping.
Sourcepub fn is_regrouped(&self) -> bool
pub fn is_regrouped(&self) -> bool
Whether the two scans grouped this host’s addresses differently: what one holds as a single record the other holds as several.
Typically one scan reached the link layer and the other did not, since link-layer evidence is what shows two addresses are one machine. Both sides are still compared, merged.
Sourcepub fn changes(&self) -> &[HostChange]
pub fn changes(&self) -> &[HostChange]
Everything that moved about the host itself, in a fixed order.
Source§impl HostDelta
impl HostDelta
Sourcepub fn significance(&self) -> Significance
pub fn significance(&self) -> Significance
How much this host is worth somebody’s attention.
The strongest of what moved on the host and on any of its endpoints. An
unconfirmed appearance or disappearance contributes
Routine of its own, as an endpoint’s does.
Its endpoints are still folded in, each answering the coverage question for itself, since a scope places addresses and port sets separately.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HostDelta
impl RefUnwindSafe for HostDelta
impl Send for HostDelta
impl Sync for HostDelta
impl Unpin for HostDelta
impl UnsafeUnpin for HostDelta
impl UnwindSafe for HostDelta
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<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