pub struct Global<M: Metrics>(/* private fields */);
Expand description
Global instance of Metrics
allowing to access contained metrics from anywhere in code.
Should be used as a static
item.
Implementations§
Trait Implementations§
impl<M: Metrics> CollectToRegistry for Global<M>
Auto Trait Implementations§
impl<M> !Freeze for Global<M>
impl<M> RefUnwindSafe for Global<M>where
M: RefUnwindSafe + UnwindSafe,
impl<M> Send for Global<M>
impl<M> Sync for Global<M>
impl<M> Unpin for Global<M>where
M: Unpin,
impl<M> UnwindSafe for Global<M>where
M: 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