#[non_exhaustive]pub enum ErrorClass {
Environmental,
Procedural,
Integrity,
Abort,
}Expand description
Audit classification of a bad outcome, recorded so an auditor can tell the
nature of a failure apart without parsing the free-form message.
This is the audit taxonomy (what an auditor sees), distinct from the
runtime’s Retriability (whether a step may re-run). For a backend error
the two align: a retriable error is Environmental. They are kept separate
because some classes never map cleanly onto retriability (an Abort is a
decision, not an error).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Environmental
The world wasn’t ready; the step’s work did not happen (token absent, loose cable, PIN required).
Procedural
The ceremony’s own logic concluded badly (a verification mismatch, a refused attestation). A result, not a recoverable condition.
Integrity
The run itself is compromised or the definition is broken (transcript write failed, channel lost, unknown action, invalid params).
Abort
The operator chose to stop. Not an error at all, but recorded on the terminal fact so abort is distinguishable from failure.
Trait Implementations§
Source§impl Clone for ErrorClass
impl Clone for ErrorClass
impl Copy for ErrorClass
Source§impl Debug for ErrorClass
impl Debug for ErrorClass
Source§impl<'de> Deserialize<'de> for ErrorClass
impl<'de> Deserialize<'de> for ErrorClass
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>,
impl Eq for ErrorClass
Source§impl PartialEq for ErrorClass
impl PartialEq for ErrorClass
Source§impl Serialize for ErrorClass
impl Serialize for ErrorClass
impl StructuralPartialEq for ErrorClass
Auto Trait Implementations§
impl Freeze for ErrorClass
impl RefUnwindSafe for ErrorClass
impl Send for ErrorClass
impl Sync for ErrorClass
impl Unpin for ErrorClass
impl UnsafeUnpin for ErrorClass
impl UnwindSafe for ErrorClass
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,
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§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.