Type Alias Callback
pub type Callback<T> = Box<dyn Fn(&dyn AsyncInstrument<T>) + Sync + Send>;
Expand description
A function registered with a Meter that makes observations for the instruments it is registered with.
The async instrument parameter is used to record measurement observations for these instruments.
The function needs to complete in a finite amount of time.
Aliased Typeยง
struct Callback<T>(/* private fields */);