Enum UnitFilePreset
#[non_exhaustive]pub enum UnitFilePreset {
Unknown,
Enabled,
Disabled,
Ignored,
Other(String),
}Expand description
The preset state of a unit file.
This is the value of the UnitFilePreset property. The strings are in the
past tense.
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.
Unknown
The preset state is not known.
Enabled
The preset policy enables the unit file.
Disabled
The preset policy disables the unit file.
Ignored
The preset policy has no rule for the unit file.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl UnitFilePreset
impl UnitFilePreset
Trait Implementations§
§impl AsRef<str> for UnitFilePreset
impl AsRef<str> for UnitFilePreset
§impl Clone for UnitFilePreset
impl Clone for UnitFilePreset
§fn clone(&self) -> UnitFilePreset
fn clone(&self) -> UnitFilePreset
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 UnitFilePreset
impl Debug for UnitFilePreset
§impl<'de> Deserialize<'de> for UnitFilePreset
impl<'de> Deserialize<'de> for UnitFilePreset
§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 UnitFilePreset
impl Display for UnitFilePreset
impl Eq for UnitFilePreset
§impl From<&str> for UnitFilePreset
impl From<&str> for UnitFilePreset
§impl From<String> for UnitFilePreset
impl From<String> for UnitFilePreset
§impl From<UnitFilePreset> for Value<'static>
impl From<UnitFilePreset> for Value<'static>
§fn from(__value: UnitFilePreset) -> Self
fn from(__value: UnitFilePreset) -> Self
Converts to this type from the input type.
§impl FromStr for UnitFilePreset
impl FromStr for UnitFilePreset
§impl Hash for UnitFilePreset
impl Hash for UnitFilePreset
§impl PartialEq for UnitFilePreset
impl PartialEq for UnitFilePreset
§impl Serialize for UnitFilePreset
impl Serialize for UnitFilePreset
impl StructuralPartialEq for UnitFilePreset
§impl TryFrom<OwnedValue> for UnitFilePreset
impl TryFrom<OwnedValue> for UnitFilePreset
§impl<'__a> TryFrom<Value<'__a>> for UnitFilePreset
impl<'__a> TryFrom<Value<'__a>> for UnitFilePreset
§impl Type for UnitFilePreset
impl Type for UnitFilePreset
Auto Trait Implementations§
impl Freeze for UnitFilePreset
impl RefUnwindSafe for UnitFilePreset
impl Send for UnitFilePreset
impl Sync for UnitFilePreset
impl Unpin for UnitFilePreset
impl UnsafeUnpin for UnitFilePreset
impl UnwindSafe for UnitFilePreset
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.