pub struct ServiceLifecycleSnapshot {
pub service_name: String,
pub phase: ServicePhase,
pub start_count: u32,
pub total_failures: u32,
pub last_error: Option<String>,
pub cumulative_running_secs: f64,
pub age_secs: f64,
pub time_in_phase_secs: f64,
pub termination_reason: Option<String>,
}Expand description
A point-in-time snapshot of a service’s lifecycle, suitable for
serialization into JSON (e.g., for the /api/health endpoint).
Fields§
§service_name: String§phase: ServicePhase§start_count: u32§total_failures: u32§last_error: Option<String>§cumulative_running_secs: f64§age_secs: f64§time_in_phase_secs: f64§termination_reason: Option<String>Trait Implementations§
Source§impl Clone for ServiceLifecycleSnapshot
impl Clone for ServiceLifecycleSnapshot
Source§fn clone(&self) -> ServiceLifecycleSnapshot
fn clone(&self) -> ServiceLifecycleSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ServiceLifecycleSnapshot
impl Debug for ServiceLifecycleSnapshot
Source§impl<'de> Deserialize<'de> for ServiceLifecycleSnapshot
impl<'de> Deserialize<'de> for ServiceLifecycleSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ServiceLifecycle> for ServiceLifecycleSnapshot
impl From<&ServiceLifecycle> for ServiceLifecycleSnapshot
Source§fn from(lc: &ServiceLifecycle) -> Self
fn from(lc: &ServiceLifecycle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ServiceLifecycleSnapshot
impl RefUnwindSafe for ServiceLifecycleSnapshot
impl Send for ServiceLifecycleSnapshot
impl Sync for ServiceLifecycleSnapshot
impl Unpin for ServiceLifecycleSnapshot
impl UnsafeUnpin for ServiceLifecycleSnapshot
impl UnwindSafe for ServiceLifecycleSnapshot
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