pub enum ReconnectionStrategy {
Infinite {
initial_delay_ms: u64,
max_delay_ms: u64,
},
Limited {
max_attempts: u32,
initial_delay_ms: u64,
max_delay_ms: u64,
},
None,
}Expand description
Reconnection strategy configuration
Variants§
Infinite
Reconnect endlessly with exponential backoff
Fields
Limited
Reconnect for a limited number of attempts
Fields
None
Do not reconnect
Trait Implementations§
Source§impl Clone for ReconnectionStrategy
impl Clone for ReconnectionStrategy
Source§fn clone(&self) -> ReconnectionStrategy
fn clone(&self) -> ReconnectionStrategy
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 ReconnectionStrategy
impl Debug for ReconnectionStrategy
Auto Trait Implementations§
impl Freeze for ReconnectionStrategy
impl RefUnwindSafe for ReconnectionStrategy
impl Send for ReconnectionStrategy
impl Sync for ReconnectionStrategy
impl Unpin for ReconnectionStrategy
impl UnwindSafe for ReconnectionStrategy
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