pub struct LifecycleSnapshot {
pub id: ServiceId,
pub ownership: Ownership,
pub state: LifecycleState,
pub health: HealthState,
pub was_registered: bool,
pub was_running: bool,
}Expand description
A point-in-time lifecycle observation plus desired restoration intent.
Fields§
§id: ServiceIdThe service identity observed.
ownership: OwnershipOwnership at observation time.
state: LifecycleStateManager state at observation time.
health: HealthStateHealth at observation time (never mutates manager state).
was_registered: boolWhether the service was registered at observation time.
was_running: boolWhether the service was running at observation time.
Implementations§
Source§impl LifecycleSnapshot
impl LifecycleSnapshot
Sourcepub fn restore_running(&self) -> bool
pub fn restore_running(&self) -> bool
The restoration intent: restart only if it was running.
Trait Implementations§
Source§impl Clone for LifecycleSnapshot
impl Clone for LifecycleSnapshot
Source§impl Debug for LifecycleSnapshot
impl Debug for LifecycleSnapshot
impl Eq for LifecycleSnapshot
Source§impl PartialEq for LifecycleSnapshot
impl PartialEq for LifecycleSnapshot
impl StructuralPartialEq for LifecycleSnapshot
Auto Trait Implementations§
impl Freeze for LifecycleSnapshot
impl RefUnwindSafe for LifecycleSnapshot
impl Send for LifecycleSnapshot
impl Sync for LifecycleSnapshot
impl Unpin for LifecycleSnapshot
impl UnsafeUnpin for LifecycleSnapshot
impl UnwindSafe for LifecycleSnapshot
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