pub enum RetryKind {
Exponential,
Constant,
}Expand description
Retry mode: exponential backoff or constant interval.
Variants§
Exponential
Delay doubles each attempt: base_delay * 2^(attempt-1).
Constant
Delay is fixed at base_delay for every attempt.
Trait Implementations§
impl Eq for RetryKind
impl StructuralPartialEq for RetryKind
Auto Trait Implementations§
impl Freeze for RetryKind
impl RefUnwindSafe for RetryKind
impl Send for RetryKind
impl Sync for RetryKind
impl Unpin for RetryKind
impl UnsafeUnpin for RetryKind
impl UnwindSafe for RetryKind
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