Struct UnitFileFlags
pub struct UnitFileFlags(u64);Expand description
Options of the unit file operations that take flags.
EnableUnitFilesWithFlags, DisableUnitFilesWithFlags and
DisableUnitFilesWithFlagsAndInstallInfo use them.
Tuple Fields§
§0: u64Implementations§
§impl UnitFileFlags
impl UnitFileFlags
pub const fn empty() -> Self
pub const fn empty() -> Self
Returns a value with no flags set.
pub const fn contains(self, __other: Self) -> bool
pub const fn contains(self, __other: Self) -> bool
Returns true if every flag of the argument is set.
pub const fn intersects(self, __other: Self) -> bool
pub const fn intersects(self, __other: Self) -> bool
Returns true if any flag of the argument is set.
pub const fn union(self, __other: Self) -> Self
pub const fn union(self, __other: Self) -> Self
Returns the flags set in either value.
pub const fn intersection(self, __other: Self) -> Self
pub const fn intersection(self, __other: Self) -> Self
Returns the flags set in both values.
pub const fn difference(self, __other: Self) -> Self
pub const fn difference(self, __other: Self) -> Self
Returns the flags of self without those of the argument.
§impl UnitFileFlags
impl UnitFileFlags
Trait Implementations§
§impl BitAnd for UnitFileFlags
impl BitAnd for UnitFileFlags
§impl BitAndAssign for UnitFileFlags
impl BitAndAssign for UnitFileFlags
§fn bitand_assign(&mut self, __other: Self)
fn bitand_assign(&mut self, __other: Self)
Performs the
&= operation. Read more§impl BitOr for UnitFileFlags
impl BitOr for UnitFileFlags
§impl BitOrAssign for UnitFileFlags
impl BitOrAssign for UnitFileFlags
§fn bitor_assign(&mut self, __other: Self)
fn bitor_assign(&mut self, __other: Self)
Performs the
|= operation. Read more§impl Clone for UnitFileFlags
impl Clone for UnitFileFlags
§fn clone(&self) -> UnitFileFlags
fn clone(&self) -> UnitFileFlags
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 moreimpl Copy for UnitFileFlags
§impl Debug for UnitFileFlags
impl Debug for UnitFileFlags
§impl Default for UnitFileFlags
impl Default for UnitFileFlags
§fn default() -> UnitFileFlags
fn default() -> UnitFileFlags
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for UnitFileFlags
impl<'de> Deserialize<'de> for UnitFileFlags
§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 Eq for UnitFileFlags
§impl From<UnitFileFlags> for u64
impl From<UnitFileFlags> for u64
§fn from(__value: UnitFileFlags) -> Self
fn from(__value: UnitFileFlags) -> Self
Converts to this type from the input type.
§impl From<UnitFileFlags> for Value<'static>
impl From<UnitFileFlags> for Value<'static>
§fn from(__value: UnitFileFlags) -> Self
fn from(__value: UnitFileFlags) -> Self
Converts to this type from the input type.
§impl From<u64> for UnitFileFlags
impl From<u64> for UnitFileFlags
§impl Hash for UnitFileFlags
impl Hash for UnitFileFlags
§impl PartialEq for UnitFileFlags
impl PartialEq for UnitFileFlags
§impl Serialize for UnitFileFlags
impl Serialize for UnitFileFlags
impl StructuralPartialEq for UnitFileFlags
§impl Sub for UnitFileFlags
impl Sub for UnitFileFlags
§impl SubAssign for UnitFileFlags
impl SubAssign for UnitFileFlags
§fn sub_assign(&mut self, __other: Self)
fn sub_assign(&mut self, __other: Self)
Performs the
-= operation. Read more§impl TryFrom<OwnedValue> for UnitFileFlags
impl TryFrom<OwnedValue> for UnitFileFlags
§impl<'__a> TryFrom<Value<'__a>> for UnitFileFlags
impl<'__a> TryFrom<Value<'__a>> for UnitFileFlags
§impl Type for UnitFileFlags
impl Type 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 UnsafeUnpin 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,
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.
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§impl<T> NoneValue for Twhere
T: Default,
impl<T> NoneValue for Twhere
T: Default,
type NoneType = T
§fn null_value() -> T
fn null_value() -> T
The none-equivalent value.