pub enum Backoff {
GiveUp,
WaitThenRetry(Duration),
}Expand description
What the caller should do about it.
Variants§
GiveUp
Stop. The failure reaches the caller as it stands.
WaitThenRetry(Duration)
Sleep this long, then send the same request again.
Trait Implementations§
impl Copy for Backoff
impl Eq for Backoff
impl StructuralPartialEq for Backoff
Auto Trait Implementations§
impl Forget for Backoff
impl Freeze for Backoff
impl Move for Backoff
impl RefUnwindSafe for Backoff
impl Send for Backoff
impl Sync for Backoff
impl Unpin for Backoff
impl UnsafeUnpin for Backoff
impl UnwindSafe for Backoff
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