pub struct WarmPoolMetrics {
pub created_total: u64,
pub acquired_total: u64,
pub evicted_total: u64,
pub refill_runs_total: u64,
pub validation_failures_total: u64,
}Expand description
Snapshot of counters intended for Prometheus-style scraping. Cloned cheaply
via WarmPool::metrics; no metrics library dependency by design.
Fields§
§created_total: u64Total number of pool entries ever spawned (refill thread).
acquired_total: u64Total number of successful acquires.
evicted_total: u64Total number of entries evicted (age, validation failure, shutdown).
refill_runs_total: u64Total number of refill scheduler ticks the thread has executed.
validation_failures_total: u64Total number of acquires that drained an unhealthy entry before returning. Indicates pool quality, not pool throughput.
Trait Implementations§
Source§impl Clone for WarmPoolMetrics
impl Clone for WarmPoolMetrics
Source§fn clone(&self) -> WarmPoolMetrics
fn clone(&self) -> WarmPoolMetrics
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 WarmPoolMetrics
impl Debug for WarmPoolMetrics
Source§impl Default for WarmPoolMetrics
impl Default for WarmPoolMetrics
Source§fn default() -> WarmPoolMetrics
fn default() -> WarmPoolMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WarmPoolMetrics
impl RefUnwindSafe for WarmPoolMetrics
impl Send for WarmPoolMetrics
impl Sync for WarmPoolMetrics
impl Unpin for WarmPoolMetrics
impl UnsafeUnpin for WarmPoolMetrics
impl UnwindSafe for WarmPoolMetrics
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