Enum KillWhom
#[non_exhaustive]pub enum KillWhom {
Main,
Control,
Cgroup,
All,
MainFail,
ControlFail,
CgroupFail,
AllFail,
Other(String),
}Expand description
The processes of a unit that a kill request targets.
The -fail variants make the call fail if no process matches. The others
succeed and do nothing in that case.
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.
Main
The main process.
Control
The control process, for example one that runs ExecStop=.
Cgroup
The processes in the control group of the unit.
Added in systemd 258.
All
The main process, the control process and the processes in the control group.
MainFail
The main process. Fail if there is none.
ControlFail
The control process. Fail if there is none.
CgroupFail
The processes in the control group. Fail if there are none.
Added in systemd 258.
AllFail
All processes. Fail if there are none.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
Trait Implementations§
§impl<'de> Deserialize<'de> for KillWhom
impl<'de> Deserialize<'de> for KillWhom
§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 KillWhom
impl StructuralPartialEq for KillWhom
Auto Trait Implementations§
impl Freeze for KillWhom
impl RefUnwindSafe for KillWhom
impl Send for KillWhom
impl Sync for KillWhom
impl Unpin for KillWhom
impl UnsafeUnpin for KillWhom
impl UnwindSafe for KillWhom
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.