pub enum RetryError {
CallFailed(ErrorCause),
StatusUnknown(ErrorCause),
}Expand description
An error type for retried calls.
This enum distinguishes between cases where we know the call failed and cases where we cannot determine the final status of the call.
Variants§
CallFailed(ErrorCause)
We know that the call failed, and there is no point in retrying
StatusUnknown(ErrorCause)
A fatal error. We don’t know whether the call failed, but there is no point in retrying.
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 moreAuto 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