pub struct ReconnectConfig {
pub max_reconnects: u32,
pub max_reconnect_delay: Duration,
pub base_delay: Duration,
pub health_check_enabled: bool,
pub health_check_interval: Duration,
}Expand description
Configuration for auto-reconnection behavior.
Fields§
§max_reconnects: u32Maximum number of reconnection attempts.
max_reconnect_delay: DurationMaximum delay between reconnection attempts.
base_delay: DurationBase delay for exponential backoff.
health_check_enabled: boolWhether to enable health check pings.
health_check_interval: DurationInterval for health check pings.
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