#[non_exhaustive]pub enum Outcome {
Answered {
position: u64,
},
Exhausted {
position: u64,
},
Skipped {
position: u64,
},
Withheld {
position: u64,
},
Unreachable {
position: u64,
},
Interrupted,
Unasked,
Unroutable,
Undecided,
}Expand description
What became of one target in one sitting.
Settled variants carry the target’s position in the plan’s enumeration; see
PlannedTarget.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Answered
The target answered. Settled.
Exhausted
The retry budget was spent without an answer. Settled, since waiting longer could not have changed it.
Skipped
Its host answered nothing in the liveness pass, so no probe was owed.
Settled, and the one settled outcome no probe was sent for. The scan asked
whether the host was there as many times as its policy allows and heard nothing, which
is what separates this from Undecided.
A resumed scan does not revisit these ports even if the host answers next time: the job
found the host down, and asking again is a new scan, as
JournalManifest says about a plan that has
moved. ZondConfig::assume_up opts out.
Withheld
Its address answers from the hardware of a machine the exclusion policy names, so no probe was allowed.
Settled, and like Skipped sent nothing. This host’s neighbour
tables tied the address to that machine before anything was sent; see
the machine an address names.
A resume does not ask it either, whatever the tables say by then, since an exclusion may
only err towards withholding more.
Unreachable
Its address was filed as one this machine cannot reach: no route or source address led there, a route was refused by its type, or the neighbour never answered address resolution.
Settled, though nothing was sent. Asking again within the job would draw the same answer from this machine’s routing, and left unsettled every target at such an address would keep a finished job resumable. A route that appears later is a reason for a new scan.
Recorded when the address is filed, over every target the plan numbers at it. That is
what separates it from Unroutable, the one target a scanner
could not send, counted as it happens. See
ScanContext::record_unroutable.
Interrupted
Outstanding mid-retry-schedule when the scan stopped.
Unasked
No probe was sent: the target was still queued when the scan stopped, its host had already spent its own budget, or this machine’s sender refused the send.
Unroutable
No scanner spoke its protocol, or this machine refused to send the probe.
Usually a missing privilege or a local fault, which can differ between sittings. A target
whose address the scan then files as unreachable is settled over this, as
Unreachable.
Undecided
The liveness pass reached no verdict on its host, so it was neither probed nor written off.
The pass stopped before or while asking, had no strategy that could ask, or was refused the range. None of those is silence, so it stays unsettled and the next sitting’s liveness pass asks about the host again.
Implementations§
Source§impl Outcome
impl Outcome
Sourcepub fn settled_position(self) -> Option<u64>
pub fn settled_position(self) -> Option<u64>
The position a resume may skip, or None where the scan did not earn one.
Sourcepub fn is_settled(self) -> bool
pub fn is_settled(self) -> bool
Whether a resume may skip this target.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
Source§impl Ord for Outcome
impl Ord for Outcome
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for Outcome
impl PartialOrd for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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