Enum UnitFileChangeType
#[non_exhaustive]pub enum UnitFileChangeType {
Symlink,
Unlink,
Masked,
MaskedByGenerator,
Dangling,
DestinationNotPresent,
AuxiliaryFailed,
Other(String),
}Expand description
The kind of a change that a unit file operation made.
This is the first field of UnitFileChange.
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.
Symlink
The operation created a symbolic link.
Unlink
The operation removed a symbolic link.
Masked
The unit file is masked.
MaskedByGenerator
A generator masked the unit file.
Added in systemd 252.
Dangling
A link points to a missing file.
DestinationNotPresent
The destination of a link does not exist.
AuxiliaryFailed
A change to an auxiliary unit failed.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl UnitFileChangeType
impl UnitFileChangeType
Trait Implementations§
§impl AsRef<str> for UnitFileChangeType
impl AsRef<str> for UnitFileChangeType
§impl Clone for UnitFileChangeType
impl Clone for UnitFileChangeType
§fn clone(&self) -> UnitFileChangeType
fn clone(&self) -> UnitFileChangeType
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 UnitFileChangeType
impl Debug for UnitFileChangeType
§impl<'de> Deserialize<'de> for UnitFileChangeType
impl<'de> Deserialize<'de> for UnitFileChangeType
§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 UnitFileChangeType
impl Display for UnitFileChangeType
impl Eq for UnitFileChangeType
§impl From<&str> for UnitFileChangeType
impl From<&str> for UnitFileChangeType
§impl From<String> for UnitFileChangeType
impl From<String> for UnitFileChangeType
§impl From<UnitFileChangeType> for Value<'static>
impl From<UnitFileChangeType> for Value<'static>
§fn from(__value: UnitFileChangeType) -> Self
fn from(__value: UnitFileChangeType) -> Self
Converts to this type from the input type.
§impl FromStr for UnitFileChangeType
impl FromStr for UnitFileChangeType
§impl Hash for UnitFileChangeType
impl Hash for UnitFileChangeType
§impl PartialEq for UnitFileChangeType
impl PartialEq for UnitFileChangeType
§impl Serialize for UnitFileChangeType
impl Serialize for UnitFileChangeType
impl StructuralPartialEq for UnitFileChangeType
§impl TryFrom<OwnedValue> for UnitFileChangeType
impl TryFrom<OwnedValue> for UnitFileChangeType
§impl<'__a> TryFrom<Value<'__a>> for UnitFileChangeType
impl<'__a> TryFrom<Value<'__a>> for UnitFileChangeType
§impl Type for UnitFileChangeType
impl Type for UnitFileChangeType
Auto Trait Implementations§
impl Freeze for UnitFileChangeType
impl RefUnwindSafe for UnitFileChangeType
impl Send for UnitFileChangeType
impl Sync for UnitFileChangeType
impl Unpin for UnitFileChangeType
impl UnsafeUnpin for UnitFileChangeType
impl UnwindSafe for UnitFileChangeType
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.