pub struct RawMetrics {
pub poll_count: AtomicU64,
pub total_duration_ns: AtomicU64,
pub utilization: AtomicU8,
}
Expand description
The raw metrics extracted from a MonitoredFuture
.
All access outside the MonitoredFuture
must be read only.
Fields§
§poll_count: AtomicU64
Amount of times the service was polled.
total_duration_ns: AtomicU64
The total time the service spent in its poll function.
utilization: AtomicU8
Estimated utilization percentage [0-100]
Trait Implementations§
Source§impl Debug for RawMetrics
impl Debug for RawMetrics
Source§impl Default for RawMetrics
impl Default for RawMetrics
Source§fn default() -> RawMetrics
fn default() -> RawMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RawMetrics
impl RefUnwindSafe for RawMetrics
impl Send for RawMetrics
impl Sync for RawMetrics
impl Unpin for RawMetrics
impl UnwindSafe for RawMetrics
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