pub enum RetryStep {
Retry(Option<Duration>),
GiveUp,
}Expand description
What to do after an attempt failed: wait the given backoff then retry, or
give up and surface the error. Produced by RetryPolicy::step and driven
by both the free with_retry combinator and the client’s per-verb
*_with_retry methods.
Variants§
Trait Implementations§
impl Copy for RetryStep
impl Eq for RetryStep
impl StructuralPartialEq for RetryStep
Auto Trait Implementations§
impl Freeze for RetryStep
impl RefUnwindSafe for RetryStep
impl Send for RetryStep
impl Sync for RetryStep
impl Unpin for RetryStep
impl UnsafeUnpin for RetryStep
impl UnwindSafe for RetryStep
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