pub enum ReasonClass {
Timeout,
StopCondition,
Error,
Panic,
Operator,
}Expand description
SRD-76 — complete description of how a single phase
ended. Built once at phase end by the executor,
installed on the scene tree, optionally persisted to
sqlite (Push 3), and rendered via the SRD-76 readouts
(Push 4).
SRD-83 (C3) — the closed vocabulary of failure-reason classes on a
phase outcome. Derived from the first PhaseErrorDetail.class (see
PhaseOutcome::reason_class); the stable strings below are the
sqlite reason_class column values and the report-layer grouping
keys.
Variants§
Timeout
A governance timeout: (or an SRD-75 poll timeout) expired —
the protocol OUT-OF-RANGE disposition.
StopCondition
A declared stop_when condition with a failing effect tripped
(includes the synthesized error_rate_exceeded guard).
Error
Op/dispatch errors stopped the phase.
Panic
A panic was caught and routed as an error.
Operator
An operator action (Ctrl-C / stop request) cut the phase.
Implementations§
Source§impl ReasonClass
impl ReasonClass
Sourcepub fn as_str(&self) -> &'static str
pub fn as_str(&self) -> &'static str
The stable serialized token (sqlite column value, report key).
Sourcepub fn from_error_class(class: &str) -> Self
pub fn from_error_class(class: &str) -> Self
Classify an error-class string from the trip/error paths. The
class strings are the established vocabulary: timeout (the
synthesized governance guard), poll_timeout (SRD-75),
panic (wrapper-caught), stop_condition: <when> /
error_rate_exceeded (SRD-83 trips), operator (session
stop). Anything else is a plain error.
Trait Implementations§
Source§impl Clone for ReasonClass
impl Clone for ReasonClass
impl Copy for ReasonClass
Source§impl Debug for ReasonClass
impl Debug for ReasonClass
impl Eq for ReasonClass
Source§impl PartialEq for ReasonClass
impl PartialEq for ReasonClass
impl StructuralPartialEq for ReasonClass
Auto Trait Implementations§
impl Freeze for ReasonClass
impl RefUnwindSafe for ReasonClass
impl Send for ReasonClass
impl Sync for ReasonClass
impl Unpin for ReasonClass
impl UnsafeUnpin for ReasonClass
impl UnwindSafe for ReasonClass
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
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<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<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