pub struct MetricContexts { /* private fields */ }Implementations§
Source§impl MetricContexts
impl MetricContexts
pub fn register_metric_context( &self, name: String, tags: Vec<Tag>, metric_type: MetricType, common: bool, namespace: MetricNamespace, ) -> ContextKey
pub fn lock(&self) -> MetricContextGuard<'_>
Trait Implementations§
Source§impl Clone for MetricContexts
impl Clone for MetricContexts
Source§fn clone(&self) -> MetricContexts
fn clone(&self) -> MetricContexts
Returns a duplicate 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 Debug for MetricContexts
impl Debug for MetricContexts
Source§impl Default for MetricContexts
impl Default for MetricContexts
Source§fn default() -> MetricContexts
fn default() -> MetricContexts
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MetricContexts
impl RefUnwindSafe for MetricContexts
impl Send for MetricContexts
impl Sync for MetricContexts
impl Unpin for MetricContexts
impl UnsafeUnpin for MetricContexts
impl UnwindSafe for MetricContexts
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