pub enum ResetReason {
PowerOn,
ExternalPin,
Watchdog,
Software,
BrownOut,
Unknown,
}Expand description
Reason for the last reset.
Variants§
PowerOn
Power-on reset (cold boot).
ExternalPin
External reset pin.
Watchdog
Watchdog timer reset.
Software
Software reset.
BrownOut
Brown-out reset.
Unknown
Unknown reset reason.
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 moreimpl Copy for ResetReason
Source§impl Debug for ResetReason
impl Debug for ResetReason
impl Eq 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 ==.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