#[non_exhaustive]pub enum BackoffKind {
None,
Fixed,
Exponential,
}Expand description
The deterministic backoff family selected by a definition.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Retry immediately.
Fixed
Wait the same delay before every retry.
Exponential
Multiply the initial delay by an integer factor, capped at a maximum.
Implementations§
Trait Implementations§
Source§impl Clone for BackoffKind
impl Clone for BackoffKind
Source§fn clone(&self) -> BackoffKind
fn clone(&self) -> BackoffKind
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 moreimpl Copy for BackoffKind
Source§impl Debug for BackoffKind
impl Debug for BackoffKind
Source§impl Display for BackoffKind
impl Display for BackoffKind
impl Eq for BackoffKind
Source§impl Hash for BackoffKind
impl Hash for BackoffKind
Source§impl Ord for BackoffKind
impl Ord for BackoffKind
Source§fn cmp(&self, other: &BackoffKind) -> Ordering
fn cmp(&self, other: &BackoffKind) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for BackoffKind
impl PartialEq for BackoffKind
Source§impl PartialOrd for BackoffKind
impl PartialOrd for BackoffKind
impl StructuralPartialEq for BackoffKind
Auto Trait Implementations§
impl Freeze for BackoffKind
impl RefUnwindSafe for BackoffKind
impl Send for BackoffKind
impl Sync for BackoffKind
impl Unpin for BackoffKind
impl UnsafeUnpin for BackoffKind
impl UnwindSafe for BackoffKind
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