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