pub struct LifecycleConfig {
pub heartbeat_interval_secs: u64,
pub heartbeat_timeout_secs: u64,
pub max_reconnect_attempts: u32,
pub reconnect_delay_ms: u64,
pub max_reconnect_delay_ms: u64,
pub reconnect_backoff_multiplier: f64,
pub auto_reconnect: bool,
}Expand description
Lifecycle configuration
Fields§
§heartbeat_interval_secs: u64Heartbeat interval in seconds
heartbeat_timeout_secs: u64Heartbeat timeout in seconds
max_reconnect_attempts: u32Maximum reconnection attempts
reconnect_delay_ms: u64Initial reconnection delay in milliseconds
max_reconnect_delay_ms: u64Maximum reconnection delay in milliseconds
reconnect_backoff_multiplier: f64Backoff multiplier for reconnection delays
auto_reconnect: boolEnable auto-reconnection
Trait Implementations§
Source§impl Clone for LifecycleConfig
impl Clone for LifecycleConfig
Source§fn clone(&self) -> LifecycleConfig
fn clone(&self) -> LifecycleConfig
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 moreSource§impl Debug for LifecycleConfig
impl Debug for LifecycleConfig
Auto Trait Implementations§
impl Freeze for LifecycleConfig
impl RefUnwindSafe for LifecycleConfig
impl Send for LifecycleConfig
impl Sync for LifecycleConfig
impl Unpin for LifecycleConfig
impl UnsafeUnpin for LifecycleConfig
impl UnwindSafe for LifecycleConfig
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