#[non_exhaustive]pub enum FaultPhase {
Read,
Process,
Write,
Transaction,
Checkpoint,
Listener,
Backoff,
}Expand description
The framework phase that produced a fault.
The phase is framework-owned input for classification. It never carries an item value, error payload, or component-private state.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Read
An item reader failed.
Process
An item processor failed.
Write
An item writer failed.
Transaction
A chunk transaction failed to begin, commit, or roll back.
Checkpoint
Checkpoint or execution-context state could not be produced or stored.
Listener
An authoritative listener callback failed or panicked.
Backoff
Cancellable backoff failed or was interrupted.
Implementations§
Source§impl FaultPhase
impl FaultPhase
Sourcepub const fn is_policy_eligible(self) -> bool
pub const fn is_policy_eligible(self) -> bool
Returns whether a classifier rule may govern this phase.
Listener failures are never retried or skipped in M3.
Sourcepub const fn is_skippable(self) -> bool
pub const fn is_skippable(self) -> bool
Returns whether a committed skip can be counted for this phase.
Sourcepub const fn allows_commit_safe_skip(self) -> bool
pub const fn allows_commit_safe_skip(self) -> bool
Returns whether the phase can structurally accept a commit-safe skip.
Only read and process faults occur before any external write effect.
Sourcepub fn from_durable_name(value: &str) -> Option<Self>
pub fn from_durable_name(value: &str) -> Option<Self>
Returns the phase for one persisted name, rejecting unknown values.
The names are durable fault-state data and are never renamed.
Trait Implementations§
Source§impl Clone for FaultPhase
impl Clone for FaultPhase
Source§fn clone(&self) -> FaultPhase
fn clone(&self) -> FaultPhase
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more