Enum nix::sys::reboot::RebootMode
source · #[non_exhaustive]#[repr(i32)]pub enum RebootMode {
RB_HALT_SYSTEM = -839_974_621,
RB_KEXEC = 1_163_412_803,
RB_POWER_OFF = 1_126_301_404,
RB_AUTOBOOT = 19_088_743,
RB_SW_SUSPEND = -805_241_630,
}
Expand description
How exactly should the system be rebooted.
See set_cad_enabled()
for
enabling/disabling Ctrl-Alt-Delete.
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.
RB_HALT_SYSTEM = -839_974_621
Halt the system.
RB_KEXEC = 1_163_412_803
Execute a kernel that has been loaded earlier with
kexec_load(2)
.
RB_POWER_OFF = 1_126_301_404
Stop the system and switch off power, if possible.
RB_AUTOBOOT = 19_088_743
Restart the system.
RB_SW_SUSPEND = -805_241_630
Suspend the system using software suspend.
Trait Implementations§
source§impl Clone for RebootMode
impl Clone for RebootMode
source§fn clone(&self) -> RebootMode
fn clone(&self) -> RebootMode
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for RebootMode
impl Debug for RebootMode
source§impl Hash for RebootMode
impl Hash for RebootMode
source§impl Ord for RebootMode
impl Ord for RebootMode
source§fn cmp(&self, other: &RebootMode) -> Ordering
fn cmp(&self, other: &RebootMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for RebootMode
impl PartialEq for RebootMode
source§impl PartialOrd for RebootMode
impl PartialOrd for RebootMode
impl Copy for RebootMode
impl Eq for RebootMode
impl StructuralPartialEq for RebootMode
Auto Trait Implementations§
impl Freeze for RebootMode
impl RefUnwindSafe for RebootMode
impl Send for RebootMode
impl Sync for RebootMode
impl Unpin for RebootMode
impl UnwindSafe for RebootMode
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,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)