pub enum RetryDecision {
Complete,
Retry,
Fail,
Suspend,
}Expand description
Next run-state intent derived from one completed attempt.
Variants§
Complete
Transition to Completed.
Retry
Transition to RetryWait.
Fail
Transition to Failed.
Suspend
Transition to Suspended. Does not count toward the max_attempts cap.
Implementations§
Source§impl RetryDecision
impl RetryDecision
Sourcepub fn target_state(self) -> RunState
pub fn target_state(self) -> RunState
Returns the canonical target run state for this decision.
Trait Implementations§
Source§impl Clone for RetryDecision
impl Clone for RetryDecision
Source§fn clone(&self) -> RetryDecision
fn clone(&self) -> RetryDecision
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RetryDecision
impl Debug for RetryDecision
Source§impl PartialEq for RetryDecision
impl PartialEq for RetryDecision
impl Copy for RetryDecision
impl Eq for RetryDecision
impl StructuralPartialEq for RetryDecision
Auto Trait Implementations§
impl Freeze for RetryDecision
impl RefUnwindSafe for RetryDecision
impl Send for RetryDecision
impl Sync for RetryDecision
impl Unpin for RetryDecision
impl UnsafeUnpin for RetryDecision
impl UnwindSafe for RetryDecision
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