pub enum ServiceState {
Running,
Stopped,
Installing,
Removed,
}Expand description
Live run state of a service.
Variants§
Running
Stopped
Installing
Install/start is in flight: the unit’s start job is still running
(image pull, container create, health check) so it reports
activating, not yet active. A transient state during ryra add.
Removed
Removed, but its data is preserved on disk.
Trait Implementations§
Source§impl Clone for ServiceState
impl Clone for ServiceState
Source§fn clone(&self) -> ServiceState
fn clone(&self) -> ServiceState
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 ServiceState
Source§impl Debug for ServiceState
impl Debug for ServiceState
Source§impl<'de> Deserialize<'de> for ServiceState
impl<'de> Deserialize<'de> for ServiceState
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
impl Eq for ServiceState
Source§impl PartialEq for ServiceState
impl PartialEq for ServiceState
Source§fn eq(&self, other: &ServiceState) -> bool
fn eq(&self, other: &ServiceState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ServiceState
impl Serialize for ServiceState
impl StructuralPartialEq for ServiceState
Auto Trait Implementations§
impl Freeze for ServiceState
impl RefUnwindSafe for ServiceState
impl Send for ServiceState
impl Sync for ServiceState
impl Unpin for ServiceState
impl UnsafeUnpin for ServiceState
impl UnwindSafe for ServiceState
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