#[non_exhaustive]pub struct WindowGaugeStats {
pub samples: usize,
pub mean: f64,
pub min: f64,
pub max: f64,
}Expand description
Mean, minimum, and maximum values for a gauge-like metric in a window.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.samples: usizeNumber of observed samples represented by these statistics.
mean: f64Arithmetic mean over samples in the window.
min: f64Minimum observed value in the window.
max: f64Maximum observed value in the window.
Implementations§
Trait Implementations§
Source§impl Clone for WindowGaugeStats
impl Clone for WindowGaugeStats
Source§fn clone(&self) -> WindowGaugeStats
fn clone(&self) -> WindowGaugeStats
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 WindowGaugeStats
impl Debug for WindowGaugeStats
Source§impl Default for WindowGaugeStats
impl Default for WindowGaugeStats
Source§fn default() -> WindowGaugeStats
fn default() -> WindowGaugeStats
Returns the “default value” for a type. Read more
Source§impl PartialEq for WindowGaugeStats
impl PartialEq for WindowGaugeStats
Source§impl Serialize for WindowGaugeStats
impl Serialize for WindowGaugeStats
impl Copy for WindowGaugeStats
impl StructuralPartialEq for WindowGaugeStats
Auto Trait Implementations§
impl Freeze for WindowGaugeStats
impl RefUnwindSafe for WindowGaugeStats
impl Send for WindowGaugeStats
impl Sync for WindowGaugeStats
impl Unpin for WindowGaugeStats
impl UnsafeUnpin for WindowGaugeStats
impl UnwindSafe for WindowGaugeStats
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