pub struct LifecycleMetrics {
pub total_components: usize,
pub ready_components: usize,
pub running_components: usize,
pub failed_components: usize,
pub last_initialization_time: Duration,
pub last_shutdown_time: Duration,
pub total_notifications: u64,
}Expand description
Lifecycle metrics for monitoring
Fields§
§total_components: usizeTotal number of components
ready_components: usizeNumber of ready components
running_components: usizeNumber of running components
failed_components: usizeNumber of failed components
last_initialization_time: DurationLast initialization time
last_shutdown_time: DurationLast shutdown time
total_notifications: u64Total lifecycle notifications sent
Implementations§
Trait Implementations§
Source§impl Clone for LifecycleMetrics
impl Clone for LifecycleMetrics
Source§fn clone(&self) -> LifecycleMetrics
fn clone(&self) -> LifecycleMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LifecycleMetrics
impl Debug for LifecycleMetrics
Auto Trait Implementations§
impl Freeze for LifecycleMetrics
impl RefUnwindSafe for LifecycleMetrics
impl Send for LifecycleMetrics
impl Sync for LifecycleMetrics
impl Unpin for LifecycleMetrics
impl UnwindSafe for LifecycleMetrics
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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