pub struct PoolConfig {
pub strategy: PoolStrategy,
pub warmup_size: usize,
pub idle_timeout: Duration,
pub max_lifetime: Duration,
pub health_check: bool,
pub health_check_interval: Duration,
}Expand description
Configuration for tenant pool manager.
Fields§
§strategy: PoolStrategyPool management strategy.
warmup_size: usizeNumber of connections to pre-warm per tenant.
idle_timeout: DurationTime before idle pools are evicted.
max_lifetime: DurationTime before connections are recycled.
health_check: boolEnable connection health checks.
health_check_interval: DurationHealth check interval.
Implementations§
Source§impl PoolConfig
impl PoolConfig
Sourcepub fn builder() -> PoolConfigBuilder
pub fn builder() -> PoolConfigBuilder
Create a new config builder.
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 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