#[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
RB_KEXEC = 1_163_412_803
RB_POWER_OFF = 1_126_301_404
RB_AUTOBOOT = 19_088_743
RB_SW_SUSPEND = -805_241_630
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