pub enum RetryError {
Canceled,
OperationTimeout {
timeout_ms: u64,
},
ElapsedBudgetExceeded {
attempt: u32,
max_attempts: u32,
last_error: Option<String>,
},
InvalidConfiguration {
message: String,
},
}Expand description
A failure synthesized by retry machinery.
This type describes the retry control path only. It does not indicate whether an operation was transmitted or applied.
Variants§
Canceled
The cancellation token was set.
OperationTimeout
A single operation attempt exceeded its configured timeout.
ElapsedBudgetExceeded
The total elapsed-time budget was exhausted.
Fields
InvalidConfiguration
The retry configuration could not create a backoff state.
Trait Implementations§
Source§impl Clone for RetryError
impl Clone for RetryError
Source§fn clone(&self) -> RetryError
fn clone(&self) -> RetryError
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 RetryError
impl Debug for RetryError
Source§impl Display for RetryError
impl Display for RetryError
impl Eq for RetryError
Source§impl Error for RetryError
impl Error for RetryError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RetryError
impl PartialEq for RetryError
impl StructuralPartialEq for RetryError
Auto Trait Implementations§
impl Freeze for RetryError
impl RefUnwindSafe for RetryError
impl Send for RetryError
impl Sync for RetryError
impl Unpin for RetryError
impl UnsafeUnpin for RetryError
impl UnwindSafe for RetryError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more