pub enum Outcome {
Stop,
Continue(Option<Duration>),
}
Expand description
Representation of whether to retry the API request, including a potential waiting period.
Variants§
Stop
Do not retry the requests, return the last error.
Continue(Option<Duration>)
Send another request, either immediately or after sleeping for the given Duration
if provided.
Trait Implementations§
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 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