Enum CleanResource
#[non_exhaustive]pub enum CleanResource {
Configuration,
State,
Cache,
Logs,
Runtime,
FdStore,
All,
Other(String),
}Expand description
A kind of data that CleanUnit can delete.
The CanClean property lists the kinds that a unit supports.
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.
Configuration
The configuration directories of the unit.
State
The state directories of the unit.
Cache
The cache directories of the unit.
Logs
The log directories of the unit.
Runtime
The runtime directories of the unit.
FdStore
The file descriptor store of the unit.
Added in systemd 254.
All
All of the above.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl CleanResource
impl CleanResource
Trait Implementations§
§impl AsRef<str> for CleanResource
impl AsRef<str> for CleanResource
§impl Clone for CleanResource
impl Clone for CleanResource
§fn clone(&self) -> CleanResource
fn clone(&self) -> CleanResource
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 CleanResource
impl Debug for CleanResource
§impl<'de> Deserialize<'de> for CleanResource
impl<'de> Deserialize<'de> for CleanResource
§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 CleanResource
impl Display for CleanResource
impl Eq for CleanResource
§impl From<&str> for CleanResource
impl From<&str> for CleanResource
§impl From<CleanResource> for Value<'static>
impl From<CleanResource> for Value<'static>
§fn from(__value: CleanResource) -> Self
fn from(__value: CleanResource) -> Self
Converts to this type from the input type.
§impl From<String> for CleanResource
impl From<String> for CleanResource
§impl FromStr for CleanResource
impl FromStr for CleanResource
§impl Hash for CleanResource
impl Hash for CleanResource
§impl PartialEq for CleanResource
impl PartialEq for CleanResource
§impl Serialize for CleanResource
impl Serialize for CleanResource
impl StructuralPartialEq for CleanResource
§impl TryFrom<OwnedValue> for CleanResource
impl TryFrom<OwnedValue> for CleanResource
§impl<'__a> TryFrom<Value<'__a>> for CleanResource
impl<'__a> TryFrom<Value<'__a>> for CleanResource
§impl Type for CleanResource
impl Type for CleanResource
Auto Trait Implementations§
impl Freeze for CleanResource
impl RefUnwindSafe for CleanResource
impl Send for CleanResource
impl Sync for CleanResource
impl Unpin for CleanResource
impl UnsafeUnpin for CleanResource
impl UnwindSafe for CleanResource
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.