pub enum InstrumentRef {
Counter(Arc<Counter>),
Gauge(Arc<ValueGauge>),
Histogram(Arc<Histogram>),
Timer(Arc<Timer>),
}Expand description
A typed instrument reference owned by a Component.
One variant per kind matches the crate::snapshot::MetricType
axis (counter / gauge / histogram / timer). Capture dispatches
on the variant to call the right kind-specific snapshot method.
Variants§
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InstrumentRef
impl RefUnwindSafe for InstrumentRef
impl Send for InstrumentRef
impl Sync for InstrumentRef
impl Unpin for InstrumentRef
impl UnsafeUnpin for InstrumentRef
impl UnwindSafe for InstrumentRef
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more