#[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()
Source§impl PartialEq for FaultPolicyError
impl PartialEq for FaultPolicyError
impl StructuralPartialEq for FaultPolicyError
Auto Trait Implementations§
impl Freeze for FaultPolicyError
impl RefUnwindSafe for FaultPolicyError
impl Send for FaultPolicyError
impl Sync for FaultPolicyError
impl Unpin for FaultPolicyError
impl UnsafeUnpin for FaultPolicyError
impl UnwindSafe for FaultPolicyError
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> 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