pub struct SystemMetrics;Expand description
SystemMetrics Thin facade over the action metrics counters.
Implementations§
Source§impl SystemMetrics
impl SystemMetrics
Sourcepub fn increment(kind: SystemMetricKind)
pub fn increment(kind: SystemMetricKind)
Increment a counter and return the new value.
Sourcepub fn snapshot() -> Vec<SystemMetricEntry>
pub fn snapshot() -> Vec<SystemMetricEntry>
Return a snapshot of all counters.
Auto Trait Implementations§
impl Freeze for SystemMetrics
impl RefUnwindSafe for SystemMetrics
impl Send for SystemMetrics
impl Sync for SystemMetrics
impl Unpin for SystemMetrics
impl UnwindSafe for SystemMetrics
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