Skip to main content

StageStatus

Enum StageStatus 

Source
pub enum StageStatus {
    Evaluated,
    Failed {
        message: String,
    },
    NotEvaluated {
        blocked_by: VerificationStage,
    },
    Halted {
        after: VerificationStage,
    },
}
Expand description

Outcome of attempting to evaluate one verification stage (DC-95 Stage 2 Level 1). No stage may be silently absent from a report. A stage’s own check raising an error is recorded as a blocking finding against its scope rather than aborting the rest of verification (Failed); a stage that could not run because a real dependency did not evaluate is itself blocking, not silently skipped (NotEvaluated); a stage that could have run on its own terms but was preempted by an operator- requested early stop is also blocking, but for a different reason it must not be confused with (Halted) — a repository whose verification is incomplete is not verified, regardless of which of the three non-Evaluated states explains the gap.

Variants§

§

Evaluated

The stage ran to completion; its findings and counts are authoritative.

§

Failed

The stage’s own check raised an error.

Fields

§message: String

The error the stage raised.

§

NotEvaluated

The stage could not run because a real dependency did not evaluate — blocked_by names a stage this one’s own logic actually reads output from. This is a dependency-graph claim, and must remain true of the graph even when --stop-on-first-error is in effect; see Halted for the case where a stage merely followed an unrelated earlier stop.

Fields

§blocked_by: VerificationStage

The earlier stage whose own non-evaluation is why this one could not run.

§

Halted

The stage was never attempted because an earlier, unrelated stage’s failure already stopped the walk under --stop-on-first-error (DC-95 Stage 2 Level 1 implementation review v1 §4) — after names the stage whose failure triggered the stop, not a dependency of this stage. Kept distinct from NotEvaluated because blocked_by is a dependency-graph claim: reporting NotEvaluated { blocked_by: Objects } for a stage that does not actually depend on Objects (e.g. LifecycleCache) would assert an edge that does not exist.

Fields

§after: VerificationStage

The stage whose failure caused the walk to stop before this stage was reached.

Implementations§

Source§

impl StageStatus

Source

pub const fn is_blocking(&self) -> bool

Return true for any status other than a clean, completed evaluation. NotEvaluated and Halted are both blocking on the same footing as Failed — an incomplete verification is not a passing one, whichever of the three explains the gap.

Trait Implementations§

Source§

impl Clone for StageStatus

Source§

fn clone(&self) -> StageStatus

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for StageStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for StageStatus

Source§

impl PartialEq for StageStatus

Source§

fn eq(&self, other: &StageStatus) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for StageStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.