pub struct Rolling {
pub avg_1s: f32,
pub avg_10s: f32,
pub avg_60s: f32,
}Expand description
One measurement averaged over the sampler’s rolling windows.
Fields§
§avg_1s: f32Average over the last second.
avg_10s: f32Average over the last 10 seconds.
avg_60s: f32Average over the last 60 seconds.
Trait Implementations§
impl Copy for Rolling
Source§impl<'de> Deserialize<'de> for Rolling
impl<'de> Deserialize<'de> for Rolling
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Rolling
Auto Trait Implementations§
impl Forget for Rolling
impl Freeze for Rolling
impl RefUnwindSafe for Rolling
impl Send for Rolling
impl Sync for Rolling
impl Unpin for Rolling
impl UnsafeUnpin for Rolling
impl UnwindSafe for Rolling
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