Enum Exhausted
pub enum Exhausted {
Fail,
Pause,
}Expand description
What a step does when its retries run out on a failure that could be
retried: its attempts, or max_elapsed, are used up.
Variants§
Fail
The step fails, and with it the run unless the code catches it.
Pause
The run pauses: its parent and callers keep waiting until
RunHandle::resume runs the step again
with a fresh budget, on the code the process has then. A final
failure (Failure::fatal) still fails at once.
Trait Implementations§
impl Copy for Exhausted
impl Eq for Exhausted
impl StructuralPartialEq for Exhausted
Auto Trait Implementations§
impl Freeze for Exhausted
impl RefUnwindSafe for Exhausted
impl Send for Exhausted
impl Sync for Exhausted
impl Unpin for Exhausted
impl UnsafeUnpin for Exhausted
impl UnwindSafe for Exhausted
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