pub enum RetryOperationWhileErrorKind<E, GoneErr = Infallible> {
Gone,
GoneCheckError(GoneErr),
OperationError(Error<E>),
RetriesExhausted(Error<E>),
}Expand description
The kind of error in a RetryOperationWhileError.
Variants§
Gone
The gone check indicated that the remote server is permanently unavailable.
GoneCheckError(GoneErr)
The gone check itself failed.
OperationError(Error<E>)
The operation failed with a non-retryable error.
RetriesExhausted(Error<E>)
All retry attempts were exhausted without success.
The contained error is the last retryable error encountered.
Trait Implementations§
Auto Trait Implementations§
impl<E, GoneErr = Infallible> !Freeze for RetryOperationWhileErrorKind<E, GoneErr>
impl<E, GoneErr = Infallible> !RefUnwindSafe for RetryOperationWhileErrorKind<E, GoneErr>
impl<E, GoneErr> Send for RetryOperationWhileErrorKind<E, GoneErr>
impl<E, GoneErr> Sync for RetryOperationWhileErrorKind<E, GoneErr>
impl<E, GoneErr> Unpin for RetryOperationWhileErrorKind<E, GoneErr>
impl<E, GoneErr> UnsafeUnpin for RetryOperationWhileErrorKind<E, GoneErr>where
GoneErr: UnsafeUnpin,
E: UnsafeUnpin,
impl<E, GoneErr = Infallible> !UnwindSafe for RetryOperationWhileErrorKind<E, GoneErr>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.