pub(super) struct HistogramFamily<L: MetricLabel, B: HistogramBucketLabel> {
histograms: Box<[Histogram<B>]>,
_label: PhantomData<L>,
}Fields§
§histograms: Box<[Histogram<B>]>§_label: PhantomData<L>Implementations§
Source§impl<L: MetricLabel, B: HistogramBucketLabel> HistogramFamily<L, B>
impl<L: MetricLabel, B: HistogramBucketLabel> HistogramFamily<L, B>
pub(super) fn observe(&self, label: L, duration: Duration)
pub(super) fn load_bucket(&self, label: L, bucket: B) -> u64
pub(super) fn load_count(&self, label: L) -> u64
pub(super) fn load_sum_micros(&self, label: L) -> u64
Trait Implementations§
Source§impl<L: Debug + MetricLabel, B: Debug + HistogramBucketLabel> Debug for HistogramFamily<L, B>
impl<L: Debug + MetricLabel, B: Debug + HistogramBucketLabel> Debug for HistogramFamily<L, B>
Source§impl<L: MetricLabel, B: HistogramBucketLabel> Default for HistogramFamily<L, B>
impl<L: MetricLabel, B: HistogramBucketLabel> Default for HistogramFamily<L, B>
Auto Trait Implementations§
impl<L, B> Freeze for HistogramFamily<L, B>
impl<L, B> RefUnwindSafe for HistogramFamily<L, B>where
L: RefUnwindSafe,
B: RefUnwindSafe,
impl<L, B> Send for HistogramFamily<L, B>
impl<L, B> Sync for HistogramFamily<L, B>
impl<L, B> Unpin for HistogramFamily<L, B>where
L: Unpin,
impl<L, B> UnsafeUnpin for HistogramFamily<L, B>
impl<L, B> UnwindSafe for HistogramFamily<L, B>where
L: UnwindSafe,
B: 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