pub struct PoolConfig {
pub max_size: usize,
pub min_idle: usize,
pub max_idle_time_secs: u64,
pub check_interval_secs: u64,
pub enabled: bool,
}Expand description
Connection pool configuration
Fields§
§max_size: usizeMaximum pool size
min_idle: usizeMinimum idle connections
max_idle_time_secs: u64Maximum idle time before eviction (seconds)
check_interval_secs: u64Pool check interval (seconds)
enabled: boolEnable pool
Trait Implementations§
Source§impl Clone for PoolConfig
impl Clone for PoolConfig
Source§fn clone(&self) -> PoolConfig
fn clone(&self) -> PoolConfig
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 PoolConfig
impl Debug for PoolConfig
Auto Trait Implementations§
impl Freeze for PoolConfig
impl RefUnwindSafe for PoolConfig
impl Send for PoolConfig
impl Sync for PoolConfig
impl Unpin for PoolConfig
impl UnsafeUnpin for PoolConfig
impl UnwindSafe for PoolConfig
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