pub struct CpmPoolConfig {
pub min_connections: usize,
pub max_connections: usize,
pub idle_timeout_us: u64,
pub max_lifetime_us: u64,
pub health_check_interval_us: u64,
pub acquire_timeout_us: u64,
pub policy: AcquirePolicy,
}Expand description
Configuration for ConnectionPoolManager.
Fields§
§min_connections: usizeMinimum number of open connections to maintain.
max_connections: usizeMaximum total connections allowed in the pool.
idle_timeout_us: u64Microseconds a connection may remain idle before eviction.
max_lifetime_us: u64Absolute connection lifetime in microseconds.
health_check_interval_us: u64How often health checks should run (informational; not auto-scheduled).
acquire_timeout_us: u64Maximum microseconds acquire will wait before returning AcquireTimeout.
policy: AcquirePolicyAcquisition selection policy.
Trait Implementations§
Source§impl Clone for CpmPoolConfig
impl Clone for CpmPoolConfig
Source§fn clone(&self) -> CpmPoolConfig
fn clone(&self) -> CpmPoolConfig
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 CpmPoolConfig
impl Debug for CpmPoolConfig
Auto Trait Implementations§
impl Freeze for CpmPoolConfig
impl RefUnwindSafe for CpmPoolConfig
impl Send for CpmPoolConfig
impl Sync for CpmPoolConfig
impl Unpin for CpmPoolConfig
impl UnsafeUnpin for CpmPoolConfig
impl UnwindSafe for CpmPoolConfig
Blanket Implementations§
impl<T> Allocation for T
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more