pub enum TaskRetryClass {
Auto,
Manual,
Never,
}Expand description
Retry behavior selected after a task failure.
Variants§
Auto
The dispatcher may automatically retry while the retry budget remains.
Manual
The task may be retried manually, but not automatically.
Never
The failure is permanent and must not be retried.
Implementations§
Source§impl TaskRetryClass
impl TaskRetryClass
Sourcepub const fn should_auto_retry(self) -> bool
pub const fn should_auto_retry(self) -> bool
Returns whether the class permits automatic retry.
Sourcepub const fn can_manual_retry(self) -> bool
pub const fn can_manual_retry(self) -> bool
Returns whether the class permits manual retry.
Trait Implementations§
Source§impl Clone for TaskRetryClass
impl Clone for TaskRetryClass
Source§fn clone(&self) -> TaskRetryClass
fn clone(&self) -> TaskRetryClass
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 TaskRetryClass
impl Debug for TaskRetryClass
Source§impl PartialEq for TaskRetryClass
impl PartialEq for TaskRetryClass
Source§fn eq(&self, other: &TaskRetryClass) -> bool
fn eq(&self, other: &TaskRetryClass) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TaskRetryClass
impl Eq for TaskRetryClass
impl StructuralPartialEq for TaskRetryClass
Auto Trait Implementations§
impl Freeze for TaskRetryClass
impl RefUnwindSafe for TaskRetryClass
impl Send for TaskRetryClass
impl Sync for TaskRetryClass
impl Unpin for TaskRetryClass
impl UnsafeUnpin for TaskRetryClass
impl UnwindSafe for TaskRetryClass
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.