pub struct ReconnectOptions {
pub initial_delay: Duration,
pub max_delay: Duration,
pub factor: f64,
pub jitter: f64,
}Available on crate feature
realtime and (crate features realtime or webhooks) only.Expand description
Options controlling exponential-backoff reconnect behaviour.
Fields§
§initial_delay: DurationDelay before the first retry.
max_delay: DurationUpper bound on any single delay.
factor: f64Multiplier applied to the delay after each attempt.
jitter: f64Fraction of jitter (0–1) applied to each delay.
Trait Implementations§
Source§impl Clone for ReconnectOptions
impl Clone for ReconnectOptions
Source§fn clone(&self) -> ReconnectOptions
fn clone(&self) -> ReconnectOptions
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 moreimpl Copy for ReconnectOptions
Source§impl Debug for ReconnectOptions
impl Debug 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 UnsafeUnpin 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