pub enum Outcome {
Done,
Retry(Duration),
Fail,
}Expand description
What the loop does with a response.
Variants§
Done
Return the response.
Retry(Duration)
Send again, after at least this long. The loop never sleeps less than
its own backoff floor, and never retries past its max_retries.
Fail
Return the response, which the caller decodes as an error.
Trait Implementations§
impl Copy for Outcome
impl Eq for Outcome
impl StructuralPartialEq for Outcome
Auto Trait Implementations§
impl Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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