Struct fuel_core_metrics::services::ServiceLifecycle
source · pub struct ServiceLifecycle {
pub busy: Counter,
pub idle: Counter,
}
Expand description
The statistic of the service life cycle.
Fields§
§busy: Counter
The time spent for real actions by the service.
Time is in nanoseconds.
idle: Counter
The idle time of awaiting sub-tasks or any action from the system/user.
Time is in nanoseconds.
Trait Implementations§
source§impl Debug for ServiceLifecycle
impl Debug for ServiceLifecycle
source§impl Default for ServiceLifecycle
impl Default for ServiceLifecycle
source§fn default() -> ServiceLifecycle
fn default() -> ServiceLifecycle
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServiceLifecycle
impl RefUnwindSafe for ServiceLifecycle
impl Send for ServiceLifecycle
impl Sync for ServiceLifecycle
impl Unpin for ServiceLifecycle
impl UnwindSafe for ServiceLifecycle
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