[][src]Trait metrix::instruments::Updates

pub trait Updates {
    fn update(&mut self, with: &Update) -> usize;
}

Implementors of Updates can handle Updates.

Updates are basically observations without a label.

Required methods

fn update(&mut self, with: &Update) -> usize

Update the internal state according to the given Update.

Not all Updates might modify the internal state. Only those that are appropriate and meaningful for the implementor.

Returns the number of instruments updated

Loading content...

Implementors

impl Updates for DataDisplay[src]

impl Updates for LastOccurrenceTracker[src]

impl Updates for ValueMeter[src]

impl Updates for Counter[src]

impl Updates for Gauge[src]

impl Updates for Histogram[src]

impl Updates for Meter[src]

impl Updates for Flag[src]

impl Updates for NonOccurrenceIndicator[src]

impl Updates for OccurrenceIndicator[src]

impl Updates for StaircaseTimer[src]

Loading content...