Enum UnitMarker
#[non_exhaustive]pub enum UnitMarker {
NeedsReload,
NeedsRestart,
NeedsStop,
NeedsStart,
Other(String),
}Expand description
A marker that records a pending action on a unit.
This is an entry of the Markers property. Packaging and configuration
tools set markers. The manager only clears them when the action happens.
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.
NeedsReload
The unit needs a reload.
NeedsRestart
The unit needs a restart.
NeedsStop
The unit needs to stop.
Added in systemd 260.
NeedsStart
The unit needs to start.
Added in systemd 260.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl UnitMarker
impl UnitMarker
Trait Implementations§
§impl AsRef<str> for UnitMarker
impl AsRef<str> for UnitMarker
§impl Clone for UnitMarker
impl Clone for UnitMarker
§fn clone(&self) -> UnitMarker
fn clone(&self) -> UnitMarker
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 UnitMarker
impl Debug for UnitMarker
§impl<'de> Deserialize<'de> for UnitMarker
impl<'de> Deserialize<'de> for UnitMarker
§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 UnitMarker
impl Display for UnitMarker
impl Eq for UnitMarker
§impl From<&str> for UnitMarker
impl From<&str> for UnitMarker
§impl From<String> for UnitMarker
impl From<String> for UnitMarker
§impl From<UnitMarker> for Value<'static>
impl From<UnitMarker> for Value<'static>
§fn from(__value: UnitMarker) -> Self
fn from(__value: UnitMarker) -> Self
Converts to this type from the input type.
§impl FromStr for UnitMarker
impl FromStr for UnitMarker
§impl Hash for UnitMarker
impl Hash for UnitMarker
§impl PartialEq for UnitMarker
impl PartialEq for UnitMarker
§impl Serialize for UnitMarker
impl Serialize for UnitMarker
impl StructuralPartialEq for UnitMarker
§impl TryFrom<OwnedValue> for UnitMarker
impl TryFrom<OwnedValue> for UnitMarker
§impl<'__a> TryFrom<Value<'__a>> for UnitMarker
impl<'__a> TryFrom<Value<'__a>> for UnitMarker
§impl Type for UnitMarker
impl Type for UnitMarker
Auto Trait Implementations§
impl Freeze for UnitMarker
impl RefUnwindSafe for UnitMarker
impl Send for UnitMarker
impl Sync for UnitMarker
impl Unpin for UnitMarker
impl UnsafeUnpin for UnitMarker
impl UnwindSafe for UnitMarker
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.