pub enum RetryErrorReason {
Aborted,
AttemptsExceeded,
MaxOperationElapsedExceeded,
MaxTotalElapsedExceeded,
UnsupportedOperation,
WorkerStillRunning,
}Expand description
Reason why the whole retry flow stopped with an error.
Variants§
Aborted
A listener or retry policy aborted the retry flow.
AttemptsExceeded
No attempts remain.
MaxOperationElapsedExceeded
The cumulative user operation elapsed-time budget was exhausted.
MaxTotalElapsedExceeded
The total monotonic retry-flow elapsed-time budget was exhausted.
UnsupportedOperation
The operation mode does not support the configured behavior.
Currently used when Retry::run receives
configured per-attempt timeout options.
WorkerStillRunning
A timed-out blocking worker did not exit within the cancellation grace period.
Trait Implementations§
Source§impl Clone for RetryErrorReason
impl Clone for RetryErrorReason
Source§fn clone(&self) -> RetryErrorReason
fn clone(&self) -> RetryErrorReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetryErrorReason
impl Debug for RetryErrorReason
Source§impl<'de> Deserialize<'de> for RetryErrorReason
impl<'de> Deserialize<'de> for RetryErrorReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RetryErrorReason
impl PartialEq for RetryErrorReason
Source§fn eq(&self, other: &RetryErrorReason) -> bool
fn eq(&self, other: &RetryErrorReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RetryErrorReason
impl Serialize for RetryErrorReason
impl Copy for RetryErrorReason
impl Eq for RetryErrorReason
impl StructuralPartialEq for RetryErrorReason
Auto Trait Implementations§
impl Freeze for RetryErrorReason
impl RefUnwindSafe for RetryErrorReason
impl Send for RetryErrorReason
impl Sync for RetryErrorReason
impl Unpin for RetryErrorReason
impl UnsafeUnpin for RetryErrorReason
impl UnwindSafe for RetryErrorReason
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
Mutably borrows from an owned value. Read more
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§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
Compare self to
key and return true if they are equal.Source§impl<T, D> IntoConfigDefault<T> for Dwhere
D: IntoValueDefault<T>,
impl<T, D> IntoConfigDefault<T> for Dwhere
D: IntoValueDefault<T>,
Source§fn into_config_default(self) -> T
fn into_config_default(self) -> T
Converts this fallback value into
T.Source§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = Infallible
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> IntoValueDefault<T> for T
impl<T> IntoValueDefault<T> for T
Source§fn into_value_default(self) -> T
fn into_value_default(self) -> T
Converts this argument into the default value.