#[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
impl Copy for BootReason
Source§impl Debug for BootReason
impl Debug for BootReason
Source§impl Default for BootReason
impl Default for BootReason
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 Forget for BootReason
impl Freeze for BootReason
impl Move 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