pub enum RetryHint {
No,
Immediate,
After(Duration),
Backoff,
AfterAction(RetryAction),
}Expand description
Retry hints for errors.
Variants§
No
Not retryable.
Immediate
Retry immediately once.
After(Duration)
Retry after the server-suggested duration.
Backoff
Retry with backoff (no server suggestion).
AfterAction(RetryAction)
Retry after performing a prerequisite action.
Trait Implementations§
impl Copy for RetryHint
impl Eq for RetryHint
impl StructuralPartialEq for RetryHint
Auto Trait Implementations§
impl Freeze for RetryHint
impl RefUnwindSafe for RetryHint
impl Send for RetryHint
impl Sync for RetryHint
impl Unpin for RetryHint
impl UnsafeUnpin for RetryHint
impl UnwindSafe for RetryHint
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