pub enum ScoreType {
Count(isize),
Sum(isize),
Max(isize),
Min(isize),
Mean(f64),
Rate(f64),
}
Expand description
Possibly aggregated scores.
Variants§
Count(isize)
Number of times the metric was used.
Sum(isize)
Sum of metric values reported.
Max(isize)
Biggest value observed.
Min(isize)
Smallest value observed.
Mean(f64)
Average value (hit count / sum, non-atomic)
Rate(f64)
Mean rate (hit count / period length in seconds, non-atomic)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ScoreType
impl RefUnwindSafe for ScoreType
impl Send for ScoreType
impl Sync for ScoreType
impl Unpin for ScoreType
impl UnwindSafe for ScoreType
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