Trait opentelemetry::sdk::metrics::sdk_api::AsDynInstrumentCore
source · [−]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
sourcefn as_dyn_core<'a>(
self: Arc<Self>
) -> Arc<dyn InstrumentCore + Sync + Send + 'a>where
Self: 'a,
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
.