pub enum TaskRetryBackoff {
Fixed,
Linear,
Exponential,
}Expand description
Backoff strategy for task retries
Variants§
Fixed
Fixed delay between retries (default)
Linear
Linearly increasing delay (delay * attempt_number)
Exponential
Exponentially increasing delay (delay * 2^attempt_number)
Trait Implementations§
Source§impl Clone for TaskRetryBackoff
impl Clone for TaskRetryBackoff
Source§fn clone(&self) -> TaskRetryBackoff
fn clone(&self) -> TaskRetryBackoff
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 TaskRetryBackoff
impl Debug for TaskRetryBackoff
Source§impl Default for TaskRetryBackoff
impl Default for TaskRetryBackoff
Source§fn default() -> TaskRetryBackoff
fn default() -> TaskRetryBackoff
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskRetryBackoff
impl<'de> Deserialize<'de> for TaskRetryBackoff
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TaskRetryBackoff
Source§impl PartialEq for TaskRetryBackoff
impl PartialEq for TaskRetryBackoff
Source§fn eq(&self, other: &TaskRetryBackoff) -> bool
fn eq(&self, other: &TaskRetryBackoff) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TaskRetryBackoff
impl Serialize for TaskRetryBackoff
impl StructuralPartialEq for TaskRetryBackoff
Auto Trait Implementations§
impl Freeze for TaskRetryBackoff
impl RefUnwindSafe for TaskRetryBackoff
impl Send for TaskRetryBackoff
impl Sync for TaskRetryBackoff
impl Unpin for TaskRetryBackoff
impl UnsafeUnpin for TaskRetryBackoff
impl UnwindSafe for TaskRetryBackoff
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