Struct solana_metrics::MovingStat
source · pub struct MovingStat { /* private fields */ }
Implementations§
source§impl MovingStat
impl MovingStat
pub fn update_stat(&self, old_value: &MovingStat, new_value: u64)
pub fn load_and_reset(&self) -> u64
Trait Implementations§
source§impl Default for MovingStat
impl Default for MovingStat
source§fn default() -> MovingStat
fn default() -> MovingStat
Returns the “default value” for a type. Read more