pub enum AttemptTimeoutPolicy {
Retry,
Abort,
}Expand description
Action taken when one attempt exceeds its configured per-attempt timeout.
The policy is used as the default decision for configured attempt-timeout
failures. Elapsed-budget effective timeouts stop the retry flow with
crate::RetryErrorReason::MaxOperationElapsedExceeded or
crate::RetryErrorReason::MaxTotalElapsedExceeded instead. Explicit
failure listeners can still return their own decision for configured
timeouts.
Variants§
Retry
Retry timed-out attempts while normal retry limits allow it.
Abort
Abort the retry flow immediately when an attempt times out.
Trait Implementations§
Source§impl Clone for AttemptTimeoutPolicy
impl Clone for AttemptTimeoutPolicy
Source§fn clone(&self) -> AttemptTimeoutPolicy
fn clone(&self) -> AttemptTimeoutPolicy
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 AttemptTimeoutPolicy
impl Debug for AttemptTimeoutPolicy
Source§impl<'de> Deserialize<'de> for AttemptTimeoutPolicy
impl<'de> Deserialize<'de> for AttemptTimeoutPolicy
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 Display for AttemptTimeoutPolicy
impl Display for AttemptTimeoutPolicy
Source§impl FromStr for AttemptTimeoutPolicy
impl FromStr for AttemptTimeoutPolicy
Source§impl PartialEq for AttemptTimeoutPolicy
impl PartialEq for AttemptTimeoutPolicy
Source§fn eq(&self, other: &AttemptTimeoutPolicy) -> bool
fn eq(&self, other: &AttemptTimeoutPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AttemptTimeoutPolicy
impl Serialize for AttemptTimeoutPolicy
impl Copy for AttemptTimeoutPolicy
impl Eq for AttemptTimeoutPolicy
impl StructuralPartialEq for AttemptTimeoutPolicy
Auto Trait Implementations§
impl Freeze for AttemptTimeoutPolicy
impl RefUnwindSafe for AttemptTimeoutPolicy
impl Send for AttemptTimeoutPolicy
impl Sync for AttemptTimeoutPolicy
impl Unpin for AttemptTimeoutPolicy
impl UnsafeUnpin for AttemptTimeoutPolicy
impl UnwindSafe for AttemptTimeoutPolicy
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.