Struct ReconnectOptions
pub struct ReconnectOptions {
pub initial_delay: Duration,
pub max_delay: Duration,
pub multiplier: f64,
pub jitter: f64,
}Expand description
Configuration for automatic reconnection with exponential backoff.
Fields§
§initial_delay: DurationInitial delay before the first reconnection attempt.
max_delay: DurationMaximum delay between reconnection attempts.
multiplier: f64Multiplicative factor applied after each failed attempt.
jitter: f64Random jitter factor (0.0–1.0) applied to each delay.
Trait Implementations§
§impl Default for ReconnectOptions
impl Default for ReconnectOptions
Auto Trait Implementations§
impl Freeze for ReconnectOptions
impl RefUnwindSafe for ReconnectOptions
impl Send for ReconnectOptions
impl Sync for ReconnectOptions
impl Unpin for ReconnectOptions
impl UnwindSafe for ReconnectOptions
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