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: AtomicU64Amount of times the service was polled.
total_duration_ns: AtomicU64The total time the service spent in its poll function.
utilization: AtomicU8Estimated 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 UnsafeUnpin 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more