pub trait AsyncMeasure: Send + Sync + Debug {
    type Value;

    // Required methods
    fn record(
        &self,
        value: Self::Value,
        attributes: Option<&Attributes>,
        context: Option<&dyn Context>,
    );
    fn stop(&self);
}
Available on non-PowerPC only.
Expand description

A measurement that can be taken asynchronously.

Required Associated Types§

type Value

The type recorded by the measurement.

Required Methods§

fn record( &self, value: Self::Value, attributes: Option<&Attributes>, context: Option<&dyn Context>, )

Record a value

fn stop(&self)

Stop recording, unregister callback.

Implementors§