Enum UnitFileState
#[non_exhaustive]pub enum UnitFileState {
Show 15 variants
Unset,
Enabled,
EnabledRuntime,
Linked,
LinkedRuntime,
Alias,
Masked,
MaskedRuntime,
Static,
Disabled,
Indirect,
Generated,
Transient,
Bad,
Other(String),
}Expand description
The install state of a unit file.
This is the value of the UnitFileState property and the state in the
ListUnitFiles result. UnitFileState::Unset is the empty string. The
service reports it when the state is unknown.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Unset
The empty string, which means no state.
Enabled
The unit file is permanently enabled.
EnabledRuntime
The unit file is enabled through /run and the state ends at reboot.
Linked
The unit file is permanently linked into /etc.
LinkedRuntime
The unit file is linked into /run and the link ends at reboot.
Alias
The unit file is an alias of another unit.
Masked
The unit file is permanently masked.
MaskedRuntime
The unit file is masked through /run and the mask ends at reboot.
Static
The unit file has no install information and is always enabled.
Disabled
The unit file is disabled.
Indirect
The unit file is not enabled, but units that it names in Also= may be.
Generated
A generator made the unit file.
Transient
The unit file is a transient unit.
Bad
The state could not be determined.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl UnitFileState
impl UnitFileState
Trait Implementations§
§impl AsRef<str> for UnitFileState
impl AsRef<str> for UnitFileState
§impl Clone for UnitFileState
impl Clone for UnitFileState
§fn clone(&self) -> UnitFileState
fn clone(&self) -> UnitFileState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more