pub struct Metrics(/* private fields */);Expand description
A worker’s counters, readable from any thread.
Hand one to crate::Config::metrics to keep a copy the process can scrape
while the worker runs, or take the worker’s own through
crate::Handle::metrics. Clones share one set of counters, so give each
worker its own.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnsafeUnpin for Metrics
impl UnwindSafe for Metrics
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