pub struct ScanDiff { /* private fields */ }Expand description
Implementations§
Source§impl ScanDiff
impl ScanDiff
Sourcepub fn significance(&self) -> Significance
pub fn significance(&self) -> Significance
Source§impl ScanDiff
impl ScanDiff
Sourcepub fn between(baseline: &ScanReport, current: &ScanReport) -> Self
pub fn between(baseline: &ScanReport, current: &ScanReport) -> Self
Compares two scans under the default DiffOptions.
Sourcepub fn compare(
baseline: &ScanReport,
current: &ScanReport,
options: &DiffOptions,
) -> Self
pub fn compare( baseline: &ScanReport, current: &ScanReport, options: &DiffOptions, ) -> Self
Compares two scans.
baseline is the earlier scan and current the later one. The order is not
checked: reports handed over the other way round give a diff that reads
backwards.
An address either scan found silent
on every port, and the other lists with nothing heard from it, is compared
as no host on both sides. That case arises when one scan recorded every
address as a host and the other used its port probes as the liveness pass;
neither heard anything, so the difference is the scans’ settings and not
the network.
Sourcepub fn baseline(&self) -> &Provenance
pub fn baseline(&self) -> &Provenance
Which scan the baseline side was.
Sourcepub fn current(&self) -> &Provenance
pub fn current(&self) -> &Provenance
Which scan the current side was.
Sourcepub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Whether the two scans describe the same network.
True means nothing this module compares moved. The reports may still differ in their measurements, which are not compared.
Sourcepub fn summary(&self) -> DiffSummary
pub fn summary(&self) -> DiffSummary
Counts derived from the deltas.
Computed on demand, so a summary cannot disagree with the deltas it describes.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScanDiff
impl RefUnwindSafe for ScanDiff
impl Send for ScanDiff
impl Sync for ScanDiff
impl Unpin for ScanDiff
impl UnsafeUnpin for ScanDiff
impl UnwindSafe for ScanDiff
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