pub struct FallbackPoolConfig {
pub max_idle: usize,
pub max_age_secs: u64,
pub fill_batch: usize,
pub fill_delay_ms: u64,
}Expand description
Configuration for fallback connection warm pool.
Warm pool semantics:
- Pre-connects up to
max_idlefresh connections in the background. - Connections are handed out once and NOT returned to the pool.
- Pool is periodically refilled.
Fields§
§max_idle: usizeMaximum idle connections to keep in pool.
max_age_secs: u64Maximum age of pooled connections in seconds.
fill_batch: usizeWarm-fill batch size per cycle (1..=max_idle).
fill_delay_ms: u64Delay (ms) between each connection attempt within a batch.
Trait Implementations§
Source§impl Clone for FallbackPoolConfig
impl Clone for FallbackPoolConfig
Source§fn clone(&self) -> FallbackPoolConfig
fn clone(&self) -> FallbackPoolConfig
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 FallbackPoolConfig
impl Debug for FallbackPoolConfig
Source§impl<'de> Deserialize<'de> for FallbackPoolConfig
impl<'de> Deserialize<'de> for FallbackPoolConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for FallbackPoolConfig
impl RefUnwindSafe for FallbackPoolConfig
impl Send for FallbackPoolConfig
impl Sync for FallbackPoolConfig
impl Unpin for FallbackPoolConfig
impl UnsafeUnpin for FallbackPoolConfig
impl UnwindSafe for FallbackPoolConfig
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