#[repr(u8)]pub enum BootReason {
Unspecified = 0,
Poweronreboot = 1,
Brownoutreset = 2,
Softwarewatchdogreset = 3,
Hardwarewatchdogreset = 4,
Softwareupdatecompleted = 5,
Softwarereset = 6,
}Variants§
Unspecified = 0
The Node is unable to identify the Power-On reason as one of the other provided enumeration values.
Poweronreboot = 1
The Node has booted as the result of physical interaction with the device resulting in a reboot.
Brownoutreset = 2
The Node has rebooted as the result of a brown-out of the Node’s power supply.
Softwarewatchdogreset = 3
The Node has rebooted as the result of a software watchdog timer.
Hardwarewatchdogreset = 4
The Node has rebooted as the result of a hardware watchdog timer.
Softwareupdatecompleted = 5
The Node has rebooted as the result of a completed software update.
Softwarereset = 6
The Node has rebooted as the result of a software initiated reboot.
Implementations§
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BootReason
impl Debug for BootReason
Source§impl<'de> Deserialize<'de> for BootReason
impl<'de> Deserialize<'de> for BootReason
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<BootReason> for u8
impl From<BootReason> for u8
Source§fn from(val: BootReason) -> Self
fn from(val: BootReason) -> Self
Converts to this type from the input type.
Source§impl PartialEq for BootReason
impl PartialEq for BootReason
Source§impl Serialize for BootReason
impl Serialize for BootReason
impl Copy for BootReason
impl Eq 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 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