pub struct SourcedMetric<T, S> { /* private fields */ }
Expand description
A metric whose values are obtained from an existing source, instead of being independently recorded.
Implementations§
source§impl<T: SourcedType, S: MetricSource> SourcedMetric<T, S>
impl<T: SourcedType, S: MetricSource> SourcedMetric<T, S>
Trait Implementations§
source§impl<T: Clone, S: Clone> Clone for SourcedMetric<T, S>
impl<T: Clone, S: Clone> Clone for SourcedMetric<T, S>
source§fn clone(&self) -> SourcedMetric<T, S>
fn clone(&self) -> SourcedMetric<T, S>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T: SourcedType, S: MetricSource> Collector for SourcedMetric<T, S>
impl<T: SourcedType, S: MetricSource> Collector for SourcedMetric<T, S>
Auto Trait Implementations§
impl<T, S> Freeze for SourcedMetric<T, S>where
S: Freeze,
impl<T, S> RefUnwindSafe for SourcedMetric<T, S>where
S: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, S> Send for SourcedMetric<T, S>
impl<T, S> Sync for SourcedMetric<T, S>
impl<T, S> Unpin for SourcedMetric<T, S>
impl<T, S> UnwindSafe for SourcedMetric<T, S>where
S: UnwindSafe,
T: UnwindSafe,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)