pub enum AttemptTimeoutSource {
Configured,
MaxOperationElapsed,
MaxTotalElapsed,
}Expand description
Source of a per-attempt timeout selection.
Variants§
Configured
Timeout selected from RetryOptions attempt timeout
configuration.
MaxOperationElapsed
Timeout selected from remaining max-operation-elapsed budget.
MaxTotalElapsed
Timeout selected from remaining max-total-elapsed budget.
Trait Implementations§
Source§impl Clone for AttemptTimeoutSource
impl Clone for AttemptTimeoutSource
Source§fn clone(&self) -> AttemptTimeoutSource
fn clone(&self) -> AttemptTimeoutSource
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 AttemptTimeoutSource
impl Debug for AttemptTimeoutSource
Source§impl<'de> Deserialize<'de> for AttemptTimeoutSource
impl<'de> Deserialize<'de> for AttemptTimeoutSource
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 Ord for AttemptTimeoutSource
impl Ord for AttemptTimeoutSource
Source§fn cmp(&self, other: &AttemptTimeoutSource) -> Ordering
fn cmp(&self, other: &AttemptTimeoutSource) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for AttemptTimeoutSource
impl PartialEq for AttemptTimeoutSource
Source§fn eq(&self, other: &AttemptTimeoutSource) -> bool
fn eq(&self, other: &AttemptTimeoutSource) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for AttemptTimeoutSource
impl PartialOrd for AttemptTimeoutSource
Source§impl Serialize for AttemptTimeoutSource
impl Serialize for AttemptTimeoutSource
impl Copy for AttemptTimeoutSource
impl Eq for AttemptTimeoutSource
impl StructuralPartialEq for AttemptTimeoutSource
Auto Trait Implementations§
impl Freeze for AttemptTimeoutSource
impl RefUnwindSafe for AttemptTimeoutSource
impl Send for AttemptTimeoutSource
impl Sync for AttemptTimeoutSource
impl Unpin for AttemptTimeoutSource
impl UnsafeUnpin for AttemptTimeoutSource
impl UnwindSafe for AttemptTimeoutSource
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> 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§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.