pub enum BackoffKind {
Exponential,
Linear,
}Expand description
Backoff strategy for reconnection attempts.
Variants§
Exponential
Delay doubles each attempt (capped at max_delay).
Linear
Delay increases linearly by base_delay each attempt.
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 · 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 BackoffKind
impl Debug for BackoffKind
Source§impl PartialEq for BackoffKind
impl PartialEq for BackoffKind
impl Copy for BackoffKind
impl Eq 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