Trait opentelemetry::metrics::CallbackRegistration

source ·
pub trait CallbackRegistration: Send + Sync {
    // Required method
    fn unregister(&mut self) -> Result<()>;
}
Expand description

A token representing the unique registration of a callback for a set of instruments with a Meter.

Required Methods§

source

fn unregister(&mut self) -> Result<()>

Removes the callback registration from its associated Meter.

Implementors§