pub enum ExitClass {
Config,
Test,
Unregistered,
}Expand description
How an error diagnostic classifies for process exit.
The registry owns this. An exit decision must never be inferred from how a code is spelled: the
CLI used to match code prefixes, and that list had drifted until E_TRACE_MISS exited 1 while
E_PATH_NOT_FOUND exited 2 for the same missing-trace condition, and a fourth prefix
(E_TRACE_SCHEMA) matched no code that has ever existed.
The variants name a class, not an exit number. Which number a class maps to belongs to whichever binary is exiting.
Variants§
Config
The run could not be evaluated as specified: config, paths, traces, baselines, embeddings.
Test
The subject under test failed a check.
Unregistered
Not a code in codes. This is a variant rather than a default so that an unclassified
code is a state a caller can see and test for, instead of the silent result of no match.
Trait Implementations§
impl Copy for ExitClass
impl Eq for ExitClass
impl StructuralPartialEq for ExitClass
Auto Trait Implementations§
impl Freeze for ExitClass
impl RefUnwindSafe for ExitClass
impl Send for ExitClass
impl Sync for ExitClass
impl Unpin for ExitClass
impl UnsafeUnpin for ExitClass
impl UnwindSafe for ExitClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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