#[repr(u32)]pub enum PlatformHaltAction {
Halt = 0,
Reboot = 1,
RebootBootloader = 2,
RebootRecovery = 3,
Shutdown = 4,
}Variants§
Halt = 0
Spin forever.
Reboot = 1
Reset the CPU.
RebootBootloader = 2
Reboot into the bootloader.
RebootRecovery = 3
Reboot into the recovery partition.
Shutdown = 4
Shutdown and power off.
Trait Implementations§
Source§impl Clone for PlatformHaltAction
impl Clone for PlatformHaltAction
Source§fn clone(&self) -> PlatformHaltAction
fn clone(&self) -> PlatformHaltAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable)§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlatformHaltAction
Source§impl Debug for PlatformHaltAction
impl Debug for PlatformHaltAction
impl Eq for PlatformHaltAction
Source§impl PartialEq for PlatformHaltAction
impl PartialEq for PlatformHaltAction
impl StructuralPartialEq for PlatformHaltAction
Auto Trait Implementations§
impl Freeze for PlatformHaltAction
impl RefUnwindSafe for PlatformHaltAction
impl Send for PlatformHaltAction
impl Sync for PlatformHaltAction
impl Unpin for PlatformHaltAction
impl UnsafeUnpin for PlatformHaltAction
impl UnwindSafe for PlatformHaltAction
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)