pub enum ServiceRuntimeState {
Starting,
Running,
StopRequested,
Stopping,
Stopped,
RestartScheduled,
Restarting,
Orphaned,
Quarantined,
Failed,
}Expand description
Concrete execution state of one managed service.
Variants§
Starting
Startup is in progress.
Running
The service currently owns its declared resource.
StopRequested
Cooperative stop was requested.
Stopping
Shutdown is in progress.
Stopped
No service instance owns the resource.
RestartScheduled
A restart has been scheduled.
Restarting
A restart worker is executing lifecycle actions.
Orphaned
A previous instance outlived its shutdown timeout.
Quarantined
Automatic lifecycle actions are disabled pending operator action.
Failed
The service failed without a live orphan.
Implementations§
Source§impl ServiceRuntimeState
impl ServiceRuntimeState
Sourcepub fn owns_resource(self) -> bool
pub fn owns_resource(self) -> bool
Reports whether the service may still own an external resource.
Trait Implementations§
Source§impl Clone for ServiceRuntimeState
impl Clone for ServiceRuntimeState
Source§fn clone(&self) -> ServiceRuntimeState
fn clone(&self) -> ServiceRuntimeState
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 moreimpl Copy for ServiceRuntimeState
Source§impl Debug for ServiceRuntimeState
impl Debug for ServiceRuntimeState
impl Eq for ServiceRuntimeState
Source§impl PartialEq for ServiceRuntimeState
impl PartialEq for ServiceRuntimeState
impl StructuralPartialEq for ServiceRuntimeState
Auto Trait Implementations§
impl Freeze for ServiceRuntimeState
impl RefUnwindSafe for ServiceRuntimeState
impl Send for ServiceRuntimeState
impl Sync for ServiceRuntimeState
impl Unpin for ServiceRuntimeState
impl UnsafeUnpin for ServiceRuntimeState
impl UnwindSafe for ServiceRuntimeState
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