pub enum RetryOutcome {
Success,
RetryableFailure(String),
PermanentFailure(String),
}Expand description
Outcome of a single retry attempt.
Variants§
Success
The task succeeded.
RetryableFailure(String)
The task failed but should be retried.
PermanentFailure(String)
The task failed and should not be retried.
Trait Implementations§
Source§impl Clone for RetryOutcome
impl Clone for RetryOutcome
Source§fn clone(&self) -> RetryOutcome
fn clone(&self) -> RetryOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RetryOutcome
impl Debug for RetryOutcome
Source§impl PartialEq for RetryOutcome
impl PartialEq for RetryOutcome
impl StructuralPartialEq for RetryOutcome
Auto Trait Implementations§
impl Freeze for RetryOutcome
impl RefUnwindSafe for RetryOutcome
impl Send for RetryOutcome
impl Sync for RetryOutcome
impl Unpin for RetryOutcome
impl UnsafeUnpin for RetryOutcome
impl UnwindSafe for RetryOutcome
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