#[repr(u8)]pub enum ResetReason {
Unknown = 0,
SoftwareReset = 1,
Watchdog = 2,
BrownOut = 3,
CpuLockup = 4,
PinReset = 5,
PowerOn = 6,
HostSignal = 7,
HostPanic = 8,
}Variants§
Unknown = 0
SoftwareReset = 1
Watchdog = 2
BrownOut = 3
CpuLockup = 4
PinReset = 5
PowerOn = 6
HostSignal = 7
HostPanic = 8
Trait Implementations§
Source§impl Clone for ResetReason
impl Clone for ResetReason
Source§fn clone(&self) -> ResetReason
fn clone(&self) -> ResetReason
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 moreSource§impl Debug for ResetReason
impl Debug for ResetReason
Source§impl PartialEq for ResetReason
impl PartialEq for ResetReason
Source§fn eq(&self, other: &ResetReason) -> bool
fn eq(&self, other: &ResetReason) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<u8> for ResetReason
impl TryFrom<u8> for ResetReason
impl Copy for ResetReason
impl Eq for ResetReason
impl StructuralPartialEq for ResetReason
Auto Trait Implementations§
impl Freeze for ResetReason
impl RefUnwindSafe for ResetReason
impl Send for ResetReason
impl Sync for ResetReason
impl Unpin for ResetReason
impl UnsafeUnpin for ResetReason
impl UnwindSafe for ResetReason
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