Enum metrix::instruments::Update [−][src]
pub enum Update { Observations(u64, Instant), Observation(Instant), ObservationWithValue(u64, Instant), }
An update instruction for an instrument
Variants
Observations(u64, Instant)
Many observations without a value observed at a given time
Observation(Instant)
One observation without a value observed at a given time
ObservationWithValue(u64, Instant)
One observation with a value observed at a given time
Methods
impl Update
[src]
impl Update
pub fn scale(self, scaling: ValueScaling) -> Update
[src]
pub fn scale(self, scaling: ValueScaling) -> Update
Scale by the given ValueScaling
Trait Implementations
impl Debug for Update
[src]
impl Debug for Update
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Update
[src]
impl Clone for Update