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> RefUnwindSafe for SourcedMetric<T, S>where S: RefUnwindSafe, T: RefUnwindSafe,
impl<T, S> Send for SourcedMetric<T, S>where S: Send, T: Send,
impl<T, S> Sync for SourcedMetric<T, S>where S: Sync, T: Sync,
impl<T, S> Unpin for SourcedMetric<T, S>where S: Unpin, T: Unpin,
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