pub struct ReconnectConfig {
pub enabled: bool,
pub max_attempts: Option<u32>,
pub initial_delay_ms: u64,
pub max_delay_ms: u64,
pub backoff_multiplier: f64,
pub jitter_factor: f64,
}
Expand description
Configuration for automatic reconnection
Fields§
§enabled: bool
Whether automatic reconnection is enabled
max_attempts: Option<u32>
Maximum number of reconnection attempts
initial_delay_ms: u64
Initial delay before first reconnection attempt (milliseconds)
max_delay_ms: u64
Maximum delay between reconnection attempts (milliseconds)
backoff_multiplier: f64
Multiplier for exponential backoff
jitter_factor: f64
Jitter factor for randomizing delays (0.0 to 1.0)
Trait Implementations§
Source§impl Clone for ReconnectConfig
impl Clone for ReconnectConfig
Source§fn clone(&self) -> ReconnectConfig
fn clone(&self) -> ReconnectConfig
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 ReconnectConfig
impl Debug for ReconnectConfig
Auto Trait Implementations§
impl Freeze for ReconnectConfig
impl RefUnwindSafe for ReconnectConfig
impl Send for ReconnectConfig
impl Sync for ReconnectConfig
impl Unpin for ReconnectConfig
impl UnwindSafe for ReconnectConfig
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