logo
pub trait AsDynInstrumentCore {
    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

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

Implementors