pub struct PoolStats {
pub name: String,
pub metrics: Vec<i64>,
}Expand description
Per-pool collected metrics.
§Examples
use dynomite::stats::PoolStats;
let pool = PoolStats::new("dyn_o_mite");
assert_eq!(pool.name, "dyn_o_mite");
assert!(!pool.metrics.is_empty());Fields§
§name: StringPool name as declared in the YAML configuration.
metrics: Vec<i64>Counter/gauge values, indexed by PoolField::index().
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PoolStats
impl RefUnwindSafe for PoolStats
impl Send for PoolStats
impl Sync for PoolStats
impl Unpin for PoolStats
impl UnsafeUnpin for PoolStats
impl UnwindSafe for PoolStats
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