pub struct ConnPoolConfig {
pub max_connections: usize,
pub server_failure_limit: u32,
pub server_retry_timeout_ms: u64,
pub auto_eject: bool,
}Expand description
Tunable knobs taken straight from the YAML pool block.
max_connections mirrors datastore_connections /
local_peer_connections / remote_peer_connections.
server_failure_limit and server_retry_timeout_ms mirror the
fields with the same name. auto_eject mirrors
auto_eject_hosts.
Fields§
§max_connections: usizeMaximum number of concurrent outbound connections kept by the pool.
server_failure_limit: u32Consecutive failures before the host is ejected.
server_retry_timeout_ms: u64Eject window in milliseconds.
auto_eject: boolHonor the auto_eject_hosts policy.
Trait Implementations§
Source§impl Clone for ConnPoolConfig
impl Clone for ConnPoolConfig
Source§fn clone(&self) -> ConnPoolConfig
fn clone(&self) -> ConnPoolConfig
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 ConnPoolConfig
impl Debug for ConnPoolConfig
Auto Trait Implementations§
impl Freeze for ConnPoolConfig
impl RefUnwindSafe for ConnPoolConfig
impl Send for ConnPoolConfig
impl Sync for ConnPoolConfig
impl Unpin for ConnPoolConfig
impl UnsafeUnpin for ConnPoolConfig
impl UnwindSafe for ConnPoolConfig
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