#[non_exhaustive]pub enum FaultPolicyError {
Show 13 variants
RetryLimitOutOfRange {
max: u32,
},
RetryOrdinalOutOfRange {
max: u32,
},
RetryStateLimitOutOfRange {
min: u32,
max: u32,
},
BackoffDelayTooLong {
max_seconds: u64,
},
ZeroBackoffMultiplier,
BackoffMaximumBelowInitial,
NotPolicyEligible {
phase: FaultPhase,
category: FailureCategory,
},
PhaseNotSkippable {
phase: FaultPhase,
},
CommitSafeSkipPhase {
phase: FaultPhase,
},
CommitSafeSkipUnsupported,
DuplicateRule {
phase: FaultPhase,
category: FailureCategory,
},
UnreachableRetryRule {
phase: FaultPhase,
category: FailureCategory,
},
SkipCountOverflow,
}Expand description
A value-redacted fault-policy validation or arithmetic failure.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
RetryLimitOutOfRange
A retry limit exceeded the bounded representation.
RetryOrdinalOutOfRange
A retry ordinal exceeded the bounded representation.
RetryStateLimitOutOfRange
The unresolved retry-key capacity was outside its bound.
BackoffDelayTooLong
A backoff delay exceeded the accepted maximum.
ZeroBackoffMultiplier
An exponential schedule used a zero multiplier.
BackoffMaximumBelowInitial
An exponential ceiling was below its initial delay.
NotPolicyEligible
A rule addressed a phase or category that fails closed in M3.
PhaseNotSkippable
A rule accepted a skip for a phase that cannot commit one.
Fields
phase: FaultPhaseThe rejected phase.
CommitSafeSkipPhase
A rule accepted a commit-safe skip after a possible external effect.
Fields
phase: FaultPhaseThe rejected phase.
CommitSafeSkipUnsupported
The selected resource cannot commit a skip atomically.
DuplicateRule
Two rules addressed the same phase and category.
UnreachableRetryRule
A retry rule could never be satisfied by the configured retry limit.
SkipCountOverflow
Checked skip-count arithmetic rejected the update.
Trait Implementations§
Source§impl Clone for FaultPolicyError
impl Clone for FaultPolicyError
Source§fn clone(&self) -> FaultPolicyError
fn clone(&self) -> FaultPolicyError
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 FaultPolicyError
Source§impl Debug for FaultPolicyError
impl Debug for FaultPolicyError
Source§impl Display for FaultPolicyError
impl Display for FaultPolicyError
impl Eq for FaultPolicyError
Source§impl Error for FaultPolicyError
impl Error for FaultPolicyError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()