pub trait InstrumentCore: AsDynInstrumentCore {
    // Required methods
    fn descriptor(&self) -> &Descriptor;
    fn as_any(&self) -> &(dyn Any + 'static);
}
Available on crate feature metrics only.
Expand description

A common interface for synchronous and asynchronous instruments.

Required Methods§

source

fn descriptor(&self) -> &Descriptor

Description of the instrument’s descriptor

source

fn as_any(&self) -> &(dyn Any + 'static)

Returns self as any

Implementors§