#[non_exhaustive]pub enum FailureCategory {
Show 15 variants
InvalidDefinition,
DuplicateExecution,
IllegalTransition,
TransientInfrastructure,
PermanentInfrastructure,
UserComponent,
Cancelled,
Serialization,
Invariant,
OptimisticConflict,
Timeout,
UnsupportedCapability,
UnknownCommit,
ShutdownIncomplete,
StaleRecovered,
}Expand description
A stable framework category for a redacted failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidDefinition
Invalid job definition or launch configuration.
DuplicateExecution
Duplicate, completed, or non-restartable execution.
IllegalTransition
Illegal or conflicting lifecycle transition.
TransientInfrastructure
A transient repository or infrastructure failure.
PermanentInfrastructure
A permanent repository or infrastructure failure.
UserComponent
A user reader, processor, writer, tasklet, or listener failure.
Cancelled
Cancellation, stop, or deadline expiry.
Serialization
Serialization or version incompatibility.
Invariant
A framework invariant was violated.
OptimisticConflict
An optimistic version check lost to a concurrent writer.
Timeout
A bounded operation exceeded its deadline.
UnsupportedCapability
The selected resource cannot provide a required capability.
UnknownCommit
A commit outcome is unknown and must never be guessed.
ShutdownIncomplete
A bounded shutdown could not join or resolve every owned child.
StaleRecovered
An execution was resolved from stale-ownership evidence.
Implementations§
Source§impl FailureCategory
impl FailureCategory
Sourcepub const fn as_str(self) -> &'static str
pub const fn as_str(self) -> &'static str
Returns the stable, low-cardinality manifest and telemetry name.
Sourcepub const fn is_policy_eligible(self) -> bool
pub const fn is_policy_eligible(self) -> bool
Returns whether a fault policy may retry or skip this category.
Definition, lifecycle, cancellation, serialization, invariant, capability, and unknown-commit failures always fail closed.
Sourcepub const fn durable_code(self) -> &'static str
pub const fn durable_code(self) -> &'static str
Returns the stable code durable adapters persist for this category.
The spelling is durable data: an existing code is never renamed, and a new variant only ever adds a code.
Sourcepub fn from_durable_code(value: &str) -> Option<Self>
pub fn from_durable_code(value: &str) -> Option<Self>
Returns the category for one durable code, rejecting unknown values.
Trait Implementations§
Source§impl Clone for FailureCategory
impl Clone for FailureCategory
Source§fn clone(&self) -> FailureCategory
fn clone(&self) -> FailureCategory
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more