Enum ActiveState
#[non_exhaustive]pub enum ActiveState {
Active,
Reloading,
Inactive,
Failed,
Activating,
Deactivating,
Maintenance,
Refreshing,
Other(String),
}Expand description
The high-level state of a unit.
This is the value of the ActiveState property. The SubState property has
finer states that depend on the unit type.
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.
Active
The unit is running or was started.
Reloading
The unit is active and is reloading its configuration.
Inactive
The unit is stopped.
Failed
The unit failed. For example, a process exited with an error or a timeout expired.
Activating
The unit is starting.
Deactivating
The unit is stopping.
Maintenance
The unit is inactive and a maintenance operation is running.
Refreshing
The unit is active and is getting a new mount in its namespace.
Added in systemd 257.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl ActiveState
impl ActiveState
Trait Implementations§
§impl AsRef<str> for ActiveState
impl AsRef<str> for ActiveState
§impl Clone for ActiveState
impl Clone for ActiveState
§fn clone(&self) -> ActiveState
fn clone(&self) -> ActiveState
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 ActiveState
impl Debug for ActiveState
§impl<'de> Deserialize<'de> for ActiveState
impl<'de> Deserialize<'de> for ActiveState
§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 ActiveState
impl Display for ActiveState
impl Eq for ActiveState
§impl From<&str> for ActiveState
impl From<&str> for ActiveState
§impl From<ActiveState> for Value<'static>
impl From<ActiveState> for Value<'static>
§fn from(__value: ActiveState) -> Self
fn from(__value: ActiveState) -> Self
Converts to this type from the input type.
§impl From<String> for ActiveState
impl From<String> for ActiveState
§impl FromStr for ActiveState
impl FromStr for ActiveState
§impl Hash for ActiveState
impl Hash for ActiveState
§impl PartialEq for ActiveState
impl PartialEq for ActiveState
§impl Serialize for ActiveState
impl Serialize for ActiveState
impl StructuralPartialEq for ActiveState
§impl TryFrom<OwnedValue> for ActiveState
impl TryFrom<OwnedValue> for ActiveState
§impl<'__a> TryFrom<Value<'__a>> for ActiveState
impl<'__a> TryFrom<Value<'__a>> for ActiveState
§impl Type for ActiveState
impl Type for ActiveState
Auto Trait Implementations§
impl Freeze for ActiveState
impl RefUnwindSafe for ActiveState
impl Send for ActiveState
impl Sync for ActiveState
impl Unpin for ActiveState
impl UnsafeUnpin for ActiveState
impl UnwindSafe for ActiveState
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.