[][src]Trait metered::metric::Metric

pub trait Metric<R>: Default + OnResult<R> + Clear + Serialize { }

A trait to implement to be used in the measure! macro

Metrics wrap expressions to measure them.

The return type, R, of the expression can be captured to perform special handling.

Implementors

impl<C: Counter, R> Metric<R> for HitCount<C>[src]

impl<C: Counter, T, E> Metric<Result<T, E>> for ErrorCount<C>[src]

impl<G: Gauge, R> Metric<R> for InFlight<G>[src]

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

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

Loading content...