#[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<FaultPhase>
pub fn from_durable_name(value: &str) -> Option<FaultPhase>
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 moreimpl Copy for FaultPhase
Source§impl Debug for FaultPhase
impl Debug for FaultPhase
Source§impl Display for FaultPhase
impl Display for FaultPhase
impl Eq for FaultPhase
Source§impl Hash for FaultPhase
impl Hash for FaultPhase
Source§impl Ord for FaultPhase
impl Ord for FaultPhase
Source§fn cmp(&self, other: &FaultPhase) -> Ordering
fn cmp(&self, other: &FaultPhase) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for FaultPhase
impl PartialEq for FaultPhase
Source§impl PartialOrd for FaultPhase
impl PartialOrd for FaultPhase
impl StructuralPartialEq for FaultPhase
Auto Trait Implementations§
impl Freeze for FaultPhase
impl RefUnwindSafe for FaultPhase
impl Send for FaultPhase
impl Sync for FaultPhase
impl Unpin for FaultPhase
impl UnsafeUnpin for FaultPhase
impl UnwindSafe for FaultPhase
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> Comparable<K> for Q
impl<Q, K> Comparable<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<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