#[repr(i32)]
pub enum RebootMode {
RB_HALT_SYSTEM,
RB_KEXEC,
RB_POWER_OFF,
RB_AUTOBOOT,
RB_SW_SUSPEND,
}
Expand description
How exactly should the system be rebooted.
See set_cad_enabled()
for
enabling/disabling Ctrl-Alt-Delete.
Variants
RB_HALT_SYSTEM
RB_KEXEC
RB_POWER_OFF
RB_AUTOBOOT
RB_SW_SUSPEND
Trait Implementations
sourceimpl Clone for RebootMode
impl Clone for RebootMode
sourcefn clone(&self) -> RebootMode
fn clone(&self) -> RebootMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for RebootMode
impl Debug for RebootMode
sourceimpl Hash for RebootMode
impl Hash for RebootMode
sourceimpl Ord for RebootMode
impl Ord for RebootMode
sourceimpl PartialEq<RebootMode> for RebootMode
impl PartialEq<RebootMode> for RebootMode
sourceimpl PartialOrd<RebootMode> for RebootMode
impl PartialOrd<RebootMode> for RebootMode
sourcefn partial_cmp(&self, other: &RebootMode) -> Option<Ordering>
fn partial_cmp(&self, other: &RebootMode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for RebootMode
impl Eq for RebootMode
impl StructuralEq for RebootMode
impl StructuralPartialEq for RebootMode
Auto Trait Implementations
impl RefUnwindSafe for RebootMode
impl Send for RebootMode
impl Sync for RebootMode
impl Unpin for RebootMode
impl UnwindSafe for RebootMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more