[][src]Trait metered::clear::Clear

pub trait Clear {
    fn clear(&self);
}

The Clear trait is used to signal metrics to clear their state if applicable

While it is recommended all metrics should implement Clear, for instance to derive Clear on registries, some metrics may choose to do nothing. For instance, Gauges would be left in an inconsistent state if they were altered during clear.

Required methods

fn clear(&self)

Requests to clear self.

Loading content...

Implementations on Foreign Types

impl Clear for Cell<u8>[src]

impl Clear for Cell<u16>[src]

impl Clear for Cell<u32>[src]

impl Clear for Cell<u64>[src]

impl Clear for Cell<u128>[src]

Loading content...

Implementors

impl Clear for AtomicInt<u128>[src]

impl Clear for AtomicInt<u16>[src]

impl Clear for AtomicInt<u32>[src]

impl Clear for AtomicInt<u64>[src]

impl Clear for AtomicInt<u8>[src]

impl Clear for AtomicHdrHistogram[src]

impl<C: Counter> Clear for ErrorCount<C>[src]

impl<C: Counter> Clear for HitCount<C>[src]

impl<G: Gauge> Clear for InFlight<G>[src]

impl<H: Histogram, T: Instant> Clear for ResponseTime<H, T>[src]

impl<P: RecordThroughput + Clear, T: Instant> Clear for Throughput<T, P>[src]

Loading content...