Enum EmergencyAction
#[non_exhaustive]pub enum EmergencyAction {
Show 17 variants
None,
Exit,
ExitForce,
Reboot,
RebootForce,
RebootImmediate,
Poweroff,
PoweroffForce,
PoweroffImmediate,
SoftReboot,
SoftRebootForce,
Kexec,
KexecForce,
Halt,
HaltForce,
HaltImmediate,
Other(String),
}Expand description
An action that the manager takes on the system or on itself.
This is the value of the JobTimeoutAction, StartLimitAction,
FailureAction and SuccessAction properties of a unit and of the
CtrlAltDelBurstAction property of the manager. User managers support only
EmergencyAction::None, EmergencyAction::Exit and
EmergencyAction::ExitForce.
The plain variants shut down in an orderly way. The Force variants skip
the shutdown jobs and stop the remaining processes. The Immediate
variants skip that and act at once.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
None
Take no action.
Exit
Exit the manager.
ExitForce
Exit the manager at once, without running stop jobs.
Reboot
Queue the reboot target.
RebootForce
Reboot without running stop jobs.
RebootImmediate
Reboot at once, without stopping any process.
Poweroff
Queue the power-off target.
PoweroffForce
Power off without running stop jobs.
PoweroffImmediate
Power off at once, without stopping any process.
SoftReboot
Queue a soft reboot.
Added in systemd 254.
SoftRebootForce
Soft reboot without running stop jobs.
Added in systemd 254.
Kexec
Queue the kexec target.
Added in systemd 254.
KexecForce
Reboot into a new kernel without running stop jobs.
Added in systemd 254.
Halt
Queue the halt target.
Added in systemd 254.
HaltForce
Halt without running stop jobs.
Added in systemd 254.
HaltImmediate
Halt at once, without stopping any process.
Added in systemd 254.
Other(String)
A value that this version of the crate doesn’t know.
Implementations§
§impl EmergencyAction
impl EmergencyAction
Trait Implementations§
§impl AsRef<str> for EmergencyAction
impl AsRef<str> for EmergencyAction
§impl Clone for EmergencyAction
impl Clone for EmergencyAction
§fn clone(&self) -> EmergencyAction
fn clone(&self) -> EmergencyAction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more