pub enum UnitState {
Show 15 variants
Alias,
Bad,
Disabled,
Enabled,
EnabledRuntime,
Generated,
Indirect,
Linked,
LinkedRuntime,
Masked,
MaskedRuntime,
NotFound,
Static,
Transient,
Unknown,
}Expand description
Whether the service is enabled (systemd UnitFileState).
Variants§
Alias
Bad
Disabled
Enabled
EnabledRuntime
Generated
Indirect
Linked
LinkedRuntime
Masked
MaskedRuntime
NotFound
Static
Transient
Unknown
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UnitState
impl<'de> Deserialize<'de> for UnitState
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 StructuralPartialEq for UnitState
Auto Trait Implementations§
impl Freeze for UnitState
impl RefUnwindSafe for UnitState
impl Send for UnitState
impl Sync for UnitState
impl Unpin for UnitState
impl UnsafeUnpin for UnitState
impl UnwindSafe for UnitState
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