pub enum ScanCompletionStatus {
Success,
CompleteAfterRecovery,
Partial,
Cancelled,
Failed,
}Expand description
Terminal state carried by detached scan artifacts.
Variants§
Success
The requested input completed without coverage gaps.
CompleteAfterRecovery
Every requested byte completed, with one or more backend ranges replayed after a visible recoverable runtime fault.
Partial
The artifact completed, but one or more requested inputs were not fully scanned.
Cancelled
The operator or host interrupted the scan before completion.
Failed
The scan failed before it could produce a trustworthy complete result.
Implementations§
Source§impl ScanCompletionStatus
impl ScanCompletionStatus
Sourcepub fn from_coverage_gaps(has_gaps: bool) -> Self
pub fn from_coverage_gaps(has_gaps: bool) -> Self
Derive the normal terminal state from the coverage summary.
Sourcepub fn resolve(metadata: Option<Self>, has_gaps: bool) -> Self
pub fn resolve(metadata: Option<Self>, has_gaps: bool) -> Self
Resolve metadata and observed coverage into one terminal state.
A non-empty coverage summary upgrades an optimistic success metadata
value to partial, while explicit cancelled and failed states are
preserved even when no gap counter was recorded.
Trait Implementations§
Source§impl Clone for ScanCompletionStatus
impl Clone for ScanCompletionStatus
Source§fn clone(&self) -> ScanCompletionStatus
fn clone(&self) -> ScanCompletionStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScanCompletionStatus
Source§impl Debug for ScanCompletionStatus
impl Debug for ScanCompletionStatus
Source§impl Default for ScanCompletionStatus
impl Default for ScanCompletionStatus
Source§impl<'de> Deserialize<'de> for ScanCompletionStatus
impl<'de> Deserialize<'de> for ScanCompletionStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScanCompletionStatus
Source§impl PartialEq for ScanCompletionStatus
impl PartialEq for ScanCompletionStatus
Source§impl Serialize for ScanCompletionStatus
impl Serialize for ScanCompletionStatus
impl StructuralPartialEq for ScanCompletionStatus
Auto Trait Implementations§
impl Freeze for ScanCompletionStatus
impl RefUnwindSafe for ScanCompletionStatus
impl Send for ScanCompletionStatus
impl Sync for ScanCompletionStatus
impl Unpin for ScanCompletionStatus
impl UnsafeUnpin for ScanCompletionStatus
impl UnwindSafe for ScanCompletionStatus
Blanket Implementations§
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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
Compare self to
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>
Converts
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>
Converts
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