pub enum UnitFileFlags {
Runtime,
Force,
Portable,
}
Variants§
Runtime
Will enable or disable the unit for runtime only.
Defined as #define SD_SYSTEMD_UNIT_RUNTIME (UINT64_C(1) << 0)
Force
Controls whether symlinks pointing to other units shall be replaced if necessary.
Defined as #define SD_SYSTEMD_UNIT_FORCE (UINT64_C(1) << 1)
Portable
Will add or remove the symlinks in /etc/systemd/system.attached
and /run/systemd/system.attached
.
Defined as #define SD_SYSTEMD_UNIT_PORTABLE (UINT64_C(1) << 2)
Trait Implementations§
Source§impl Clone for UnitFileFlags
impl Clone for UnitFileFlags
Source§fn clone(&self) -> UnitFileFlags
fn clone(&self) -> UnitFileFlags
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for UnitFileFlags
impl Debug for UnitFileFlags
Source§impl<'de> Deserialize<'de> for UnitFileFlags
impl<'de> Deserialize<'de> for UnitFileFlags
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
Source§impl Ord for UnitFileFlags
impl Ord for UnitFileFlags
Source§fn cmp(&self, other: &UnitFileFlags) -> Ordering
fn cmp(&self, other: &UnitFileFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UnitFileFlags
impl PartialEq for UnitFileFlags
Source§impl PartialOrd for UnitFileFlags
impl PartialOrd for UnitFileFlags
Source§impl Serialize for UnitFileFlags
impl Serialize for UnitFileFlags
Source§impl Type for UnitFileFlags
impl Type for UnitFileFlags
impl Copy for UnitFileFlags
impl Eq for UnitFileFlags
impl StructuralPartialEq for UnitFileFlags
Auto Trait Implementations§
impl Freeze for UnitFileFlags
impl RefUnwindSafe for UnitFileFlags
impl Send for UnitFileFlags
impl Sync for UnitFileFlags
impl Unpin for UnitFileFlags
impl UnwindSafe for UnitFileFlags
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,
Source§impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
impl<'de, T> DynamicDeserialize<'de> for Twhere
T: Type + Deserialize<'de>,
Source§type Deserializer = PhantomData<T>
type Deserializer = PhantomData<T>
A DeserializeSeed implementation for this type.
Source§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.