pub struct ReconnectStrategy {
pub enabled: bool,
pub max_attempts: u32,
pub backoff_initial_milliseconds: u64,
pub backoff_max_milliseconds: u64,
pub backoff_multiplier: f64,
}Expand description
WebSocket reconnection strategy
Fields§
§enabled: boolWhether to attempt reconnection
max_attempts: u32Maximum number of reconnection attempts (0 = unlimited)
backoff_initial_milliseconds: u64Initial backoff delay in milliseconds
backoff_max_milliseconds: u64Maximum backoff delay in milliseconds
backoff_multiplier: f64Backoff multiplier (e.g., 2.0 = exponential backoff)
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 · Source§const fn clone_from(&mut self, source: &Self)
const 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 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