Enum SystemState
#[non_exhaustive]pub enum SystemState {
Initializing,
Starting,
Running,
Degraded,
Maintenance,
Stopping,
Other(String),
}Expand description
The state of the service manager.
This is the value of the SystemState property.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Initializing
The system is booting and has not reached basic.target.
Starting
The system is booting and has reached basic.target.
Running
The system finished booting and no unit is failed.
Degraded
The system finished booting and some units are failed.
Maintenance
The system finished booting and is in rescue or maintenance mode.
Stopping
The system is shutting down.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl SystemState
impl SystemState
Trait Implementations§
§impl AsRef<str> for SystemState
impl AsRef<str> for SystemState
§impl Clone for SystemState
impl Clone for SystemState
§fn clone(&self) -> SystemState
fn clone(&self) -> SystemState
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 more§impl Debug for SystemState
impl Debug for SystemState
§impl<'de> Deserialize<'de> for SystemState
impl<'de> Deserialize<'de> for SystemState
§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 Display for SystemState
impl Display for SystemState
impl Eq for SystemState
§impl From<&str> for SystemState
impl From<&str> for SystemState
§impl From<String> for SystemState
impl From<String> for SystemState
§impl From<SystemState> for Value<'static>
impl From<SystemState> for Value<'static>
§fn from(__value: SystemState) -> Self
fn from(__value: SystemState) -> Self
Converts to this type from the input type.
§impl FromStr for SystemState
impl FromStr for SystemState
§impl Hash for SystemState
impl Hash for SystemState
§impl PartialEq for SystemState
impl PartialEq for SystemState
§impl Serialize for SystemState
impl Serialize for SystemState
impl StructuralPartialEq for SystemState
§impl TryFrom<OwnedValue> for SystemState
impl TryFrom<OwnedValue> for SystemState
§impl<'__a> TryFrom<Value<'__a>> for SystemState
impl<'__a> TryFrom<Value<'__a>> for SystemState
§impl Type for SystemState
impl Type for SystemState
Auto Trait Implementations§
impl Freeze for SystemState
impl RefUnwindSafe for SystemState
impl Send for SystemState
impl Sync for SystemState
impl Unpin for SystemState
impl UnsafeUnpin for SystemState
impl UnwindSafe for SystemState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
§fn deserializer_for_signature(
signature: &Signature,
) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
fn deserializer_for_signature( signature: &Signature, ) -> Result<<T as DynamicDeserialize<'de>>::Deserializer, Error>
Get a deserializer compatible with this parsed signature.