pub struct PoolConfig {
pub max_size: usize,
pub min_size: usize,
pub acquire_timeout: Duration,
pub max_idle_time: Duration,
pub health_check_interval: Duration,
}Expand description
Configuration for resource pools
Fields§
§max_size: usizeMaximum number of resources in the pool
min_size: usizeMinimum number of resources to keep in the pool
acquire_timeout: DurationMaximum time to wait for a resource to become available
max_idle_time: DurationMaximum idle time before a resource is considered expired
health_check_interval: DurationInterval for health checking idle resources
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