pub struct ProductMetricHandle { /* private fields */ }Expand description
Opaque handle returned after registering a product metric.
Implementations§
Source§impl ProductMetricHandle
impl ProductMetricHandle
Sourcepub const fn kind(&self) -> MetricKind
pub const fn kind(&self) -> MetricKind
Returns the registered metric kind.
Sourcepub const fn label_count(&self) -> usize
pub const fn label_count(&self) -> usize
Returns the number of label values required by this metric.
Trait Implementations§
Source§impl Clone for ProductMetricHandle
impl Clone for ProductMetricHandle
Source§fn clone(&self) -> ProductMetricHandle
fn clone(&self) -> ProductMetricHandle
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProductMetricHandle
impl Debug for ProductMetricHandle
Source§impl PartialEq for ProductMetricHandle
impl PartialEq for ProductMetricHandle
Source§fn eq(&self, other: &ProductMetricHandle) -> bool
fn eq(&self, other: &ProductMetricHandle) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ProductMetricHandle
impl Eq for ProductMetricHandle
impl StructuralPartialEq for ProductMetricHandle
Auto Trait Implementations§
impl Freeze for ProductMetricHandle
impl RefUnwindSafe for ProductMetricHandle
impl Send for ProductMetricHandle
impl Sync for ProductMetricHandle
impl Unpin for ProductMetricHandle
impl UnsafeUnpin for ProductMetricHandle
impl UnwindSafe for ProductMetricHandle
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.