pub trait AsDynInstrumentCore {
    // Required method
    fn as_dyn_core<'a>(
        self: Arc<Self>
    ) -> Arc<dyn InstrumentCore + Sync + Send + 'a>
       where Self: 'a;
}
Available on crate feature metrics only.
Expand description

A utility extension to allow upcasting.

Can be removed once trait_upcasting is stablized.

Required Methods§

source

fn as_dyn_core<'a>( self: Arc<Self> ) -> Arc<dyn InstrumentCore + Sync + Send + 'a>where Self: 'a,

Create an Arc<dyn InstrumentCore> from an impl of InstrumentCore.

Implementors§