#[repr(u8)]pub enum BootReason {
Unspecified = 0,
PowerOnReboot = 1,
BrownOutReset = 2,
SoftwareWatchdogReset = 3,
HardwareWatchdogReset = 4,
SoftwareUpdateCompleted = 5,
SoftwareReset = 6,
}Expand description
§11.12.5.5’s BootReasonEnum — why the node started.
Variants§
Unspecified = 0
“unable to identify the Power-On reason as one of the other provided enumeration values”.
PowerOnReboot = 1
Physical interaction with the device.
BrownOutReset = 2
A brown-out of the power supply.
SoftwareWatchdogReset = 3
A software watchdog timer.
HardwareWatchdogReset = 4
A hardware watchdog timer.
SoftwareUpdateCompleted = 5
A completed software update.
SoftwareReset = 6
A software-initiated reboot.
Trait Implementations§
Source§impl Clone for BootReason
impl Clone for BootReason
Source§fn clone(&self) -> BootReason
fn clone(&self) -> BootReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BootReason
Source§impl Debug for BootReason
impl Debug for BootReason
Source§impl Default for BootReason
impl Default for BootReason
Source§fn default() -> BootReason
fn default() -> BootReason
Returns the “default value” for a type. Read more
impl Eq for BootReason
Source§impl Hash for BootReason
impl Hash for BootReason
Source§impl PartialEq for BootReason
impl PartialEq for BootReason
impl StructuralPartialEq for BootReason
Auto Trait Implementations§
impl Freeze for BootReason
impl RefUnwindSafe for BootReason
impl Send for BootReason
impl Sync for BootReason
impl Unpin for BootReason
impl UnsafeUnpin for BootReason
impl UnwindSafe for BootReason
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