Enum nix::sys::reboot::RebootMode[][src]

#[repr(i32)]
pub enum RebootMode {
    RB_HALT_SYSTEM,
    RB_KEXEC,
    RB_POWER_OFF,
    RB_AUTOBOOT,
    RB_SW_SUSPEND,
}

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

impl Clone for RebootMode[src]

impl Copy for RebootMode[src]

impl Debug for RebootMode[src]

impl Eq for RebootMode[src]

impl Hash for RebootMode[src]

impl Ord for RebootMode[src]

impl PartialEq<RebootMode> for RebootMode[src]

impl PartialOrd<RebootMode> for RebootMode[src]

impl StructuralEq for RebootMode[src]

impl StructuralPartialEq for RebootMode[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.