pub enum RetryError<E> {
Exhausted(E),
TimedOut,
}Expand description
The failure mode of a retried operation once attempts are exhausted.
Variants§
Exhausted(E)
The handler returned Err on its final attempt.
TimedOut
Every attempt timed out (or no attempt was made with max_attempts == 0),
so no handler error is available.
Trait Implementations§
Source§impl<E: Debug> Debug for RetryError<E>
impl<E: Debug> Debug for RetryError<E>
Source§impl<E: Display> Display for RetryError<E>
impl<E: Display> Display for RetryError<E>
Source§impl<E: Error + 'static> Error for RetryError<E>
impl<E: Error + 'static> Error for RetryError<E>
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<E: PartialEq> PartialEq for RetryError<E>
impl<E: PartialEq> PartialEq for RetryError<E>
impl<E: PartialEq> StructuralPartialEq for RetryError<E>
Auto Trait Implementations§
impl<E> Freeze for RetryError<E>where
E: Freeze,
impl<E> RefUnwindSafe for RetryError<E>where
E: RefUnwindSafe,
impl<E> Send for RetryError<E>where
E: Send,
impl<E> Sync for RetryError<E>where
E: Sync,
impl<E> Unpin for RetryError<E>where
E: Unpin,
impl<E> UnsafeUnpin for RetryError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for RetryError<E>where
E: UnwindSafe,
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