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);
}Expand description
A measurement that can be taken asynchronously.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".