pub struct ConnectionPoolConfig {
pub max_connections: usize,
pub max_idle_time: Duration,
pub cleanup_interval: Duration,
pub enable_reuse: bool,
pub max_connection_age: Duration,
}Expand description
Configuration for connection pooling
Fields§
§max_connections: usizeMaximum number of connections to pool
max_idle_time: DurationMaximum idle time before connection cleanup
cleanup_interval: DurationCleanup interval for expired connections
enable_reuse: boolEnable connection reuse
max_connection_age: DurationMaximum connection age before forced refresh
Trait Implementations§
Source§impl Clone for ConnectionPoolConfig
impl Clone for ConnectionPoolConfig
Source§fn clone(&self) -> ConnectionPoolConfig
fn clone(&self) -> ConnectionPoolConfig
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 ConnectionPoolConfig
impl Debug for ConnectionPoolConfig
Auto Trait Implementations§
impl Freeze for ConnectionPoolConfig
impl RefUnwindSafe for ConnectionPoolConfig
impl Send for ConnectionPoolConfig
impl Sync for ConnectionPoolConfig
impl Unpin for ConnectionPoolConfig
impl UnwindSafe for ConnectionPoolConfig
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