pub struct ManagerConfig {
pub max_connections: usize,
pub health_check_interval: Duration,
pub health_check_threshold: usize,
pub health_check_timeout: Duration,
pub auto_reconnect: bool,
pub reconnect_delay: Duration,
pub max_reconnect_delay: Duration,
pub reconnect_backoff_multiplier: f64,
}Expand description
Configuration for the connection manager
Fields§
§max_connections: usizeMaximum number of concurrent connections
health_check_interval: DurationHealth check interval
health_check_threshold: usizeNumber of consecutive failures before marking unhealthy
health_check_timeout: DurationTimeout for health checks
auto_reconnect: boolEnable automatic reconnection
reconnect_delay: DurationInitial reconnection delay
max_reconnect_delay: DurationMaximum reconnection delay (for exponential backoff)
reconnect_backoff_multiplier: f64Reconnection backoff multiplier
Implementations§
Source§impl ManagerConfig
impl ManagerConfig
Trait Implementations§
Source§impl Clone for ManagerConfig
impl Clone for ManagerConfig
Source§fn clone(&self) -> ManagerConfig
fn clone(&self) -> ManagerConfig
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ManagerConfig
impl Debug for ManagerConfig
Auto Trait Implementations§
impl Freeze for ManagerConfig
impl RefUnwindSafe for ManagerConfig
impl Send for ManagerConfig
impl Sync for ManagerConfig
impl Unpin for ManagerConfig
impl UnwindSafe for ManagerConfig
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)