#[non_exhaustive]pub enum PortChange {
State(Change<PortState>),
Service(ServiceChange),
Security(SecurityChange),
Findings {
appeared: Vec<Finding>,
resolved: Vec<Finding>,
unsettled: Vec<Finding>,
reassessed: Vec<Reassessment>,
},
}Expand description
Something that moved about one endpoint.
#[non_exhaustive] because new protocols let a scan establish more about a
port, and adding a variant should not need a major version.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
State(Change<PortState>)
The verdict moved. States are not ordered by how alarming they are:
NoReply to Closed is a firewall that stopped dropping probes, not a
port that shut.
Service(ServiceChange)
What is listening changed or was first identified.
Security(SecurityChange)
What the endpoint presents at the TLS handshake changed.
Findings
Findings that appeared on the port, findings the current scan stopped
claiming, and findings whose severity moved. Paired as
HostChange::Findings pairs its own.
A claim the current scan does not make is resolved only where that scan
settled what the claim rests on; otherwise it goes under unsettled, the
finding-level Coverage::Unreached. That covers:
- a claim drawn from what the endpoint accepts, where the current scan cut a version walk it rests on short, or made none;
- a claim drawn from the certificate’s posture, where the current scan
recorded no certificate (reported beside the
Withdrawnfor the absence); - a vulnerability correlation, where the current scan identified nothing there or named the software without a version.
Fields
resolved: Vec<Finding>Findings the baseline claimed and the current scan does not, other
than those under unsettled.
unsettled: Vec<Finding>Findings the baseline claimed that the current scan neither claims nor settled.
reassessed: Vec<Reassessment>Findings both scans claim, where the severity moved.
Implementations§
Source§impl PortChange
impl PortChange
Sourcepub fn significance(&self) -> Significance
pub fn significance(&self) -> Significance
How much this change is worth somebody’s attention.
Matched with no wildcard, like HostChange::significance.
Trait Implementations§
Source§impl Clone for PortChange
impl Clone for PortChange
Source§impl Debug for PortChange
impl Debug for PortChange
Source§impl PartialEq for PortChange
impl PartialEq for PortChange
impl StructuralPartialEq for PortChange
Auto Trait Implementations§
impl Freeze for PortChange
impl RefUnwindSafe for PortChange
impl Send for PortChange
impl Sync for PortChange
impl Unpin for PortChange
impl UnsafeUnpin for PortChange
impl UnwindSafe for PortChange
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