pub enum RunOutcome {
Passed,
Failed,
Warned,
Fixed,
Unavailable,
Inert,
}Expand description
How a single run of one gate ended.
The check vocabulary, kept whole rather than flattened to pass/fail:
Unavailable is the outcome the fleet audit of 2026-09-19 kept finding —
a gate that could not run, reported as a warning, counted by nobody — and
collapsing it into “fail” would hide it all over again.
Variants§
Implementations§
Source§impl RunOutcome
impl RunOutcome
pub fn as_str(self) -> &'static str
Sourcepub fn parse(s: &str) -> Option<RunOutcome>
pub fn parse(s: &str) -> Option<RunOutcome>
The parse side. None for anything unknown — a future amont may write
an outcome this one has never heard of, and inventing a meaning for it
would be worse than dropping the line.
Sourcepub fn is_verdict(self) -> bool
pub fn is_verdict(self) -> bool
Did this run reach a verdict about the content? Only these two are evidence about whether a gate works — the rest are a gate declining to judge, and counting them as passes is how a no-op looks healthy.
Trait Implementations§
Source§impl Clone for RunOutcome
impl Clone for RunOutcome
impl Copy for RunOutcome
Source§impl Debug for RunOutcome
impl Debug for RunOutcome
impl Eq for RunOutcome
Source§impl PartialEq for RunOutcome
impl PartialEq for RunOutcome
impl StructuralPartialEq for RunOutcome
Auto Trait Implementations§
impl Freeze for RunOutcome
impl RefUnwindSafe for RunOutcome
impl Send for RunOutcome
impl Sync for RunOutcome
impl Unpin for RunOutcome
impl UnsafeUnpin for RunOutcome
impl UnwindSafe for RunOutcome
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