pub enum ReconnectStrategy {
Fixed(Duration),
Exponential {
initial: Duration,
max: Duration,
multiplier: f64,
jitter_factor: f64,
},
}Expand description
Reconnection strategy for backends
Variants§
Fixed(Duration)
Fixed delay between reconnection attempts
Exponential
Exponential backoff with optional max delay and jitter
Trait Implementations§
Source§impl Clone for ReconnectStrategy
impl Clone for ReconnectStrategy
Source§fn clone(&self) -> ReconnectStrategy
fn clone(&self) -> ReconnectStrategy
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 ReconnectStrategy
impl Debug for ReconnectStrategy
Auto Trait Implementations§
impl Freeze for ReconnectStrategy
impl RefUnwindSafe for ReconnectStrategy
impl Send for ReconnectStrategy
impl Sync for ReconnectStrategy
impl Unpin for ReconnectStrategy
impl UnsafeUnpin for ReconnectStrategy
impl UnwindSafe for ReconnectStrategy
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