pub struct WarmPoolConfig {
pub min_depth: usize,
pub max_depth: usize,
pub refill_interval: Duration,
pub entry_max_age: Duration,
}Expand description
Tunables for the pool’s refill scheduler and eviction policy.
Fields§
§min_depth: usizeLow-water mark per registered key. When a bucket drops below this depth the refill thread tops it up.
max_depth: usizeHigh-water mark per registered key. Refill stops once depth hits this.
refill_interval: DurationRefill scheduler interval. The thread sleeps this long between sweeps. Lower values trade CPU + provider load for shorter recovery after a burst of acquires.
entry_max_age: DurationMaximum age of a pool entry before it is evicted and recreated. Defends against stale snapshots (TAP leaks, kernel-side timer drift, sidecar caches gone stale, etc.).
Trait Implementations§
Source§impl Clone for WarmPoolConfig
impl Clone for WarmPoolConfig
Source§fn clone(&self) -> WarmPoolConfig
fn clone(&self) -> WarmPoolConfig
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 WarmPoolConfig
impl Debug for WarmPoolConfig
Auto Trait Implementations§
impl Freeze for WarmPoolConfig
impl RefUnwindSafe for WarmPoolConfig
impl Send for WarmPoolConfig
impl Sync for WarmPoolConfig
impl Unpin for WarmPoolConfig
impl UnsafeUnpin for WarmPoolConfig
impl UnwindSafe for WarmPoolConfig
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