Enum esp_idf_hal::reset::ResetReason
source · pub enum ResetReason {
Software,
ExternalPin,
Watchdog,
Sdio,
Panic,
InterruptWatchdog,
PowerOn,
Unknown,
Brownout,
TaskWatchdog,
DeepSleep,
}
Expand description
Reset reasons
Variants§
Software
Software restart via esp_restart()
ExternalPin
Reset by external pin
Watchdog
Reset due to other watchdogs
Sdio
Reset over SDIO
Panic
Software reset due to exception/panic
InterruptWatchdog
Reset (software or hardware) due to interrupt watchdog
PowerOn
Reset due to power-on event
Unknown
Reset reason can not be determined
Brownout
Brownout reset (software or hardware)
TaskWatchdog
Reset due to task watchdog
DeepSleep
Reset after exiting deep sleep mode
Implementations§
source§impl ResetReason
impl ResetReason
Trait Implementations§
source§impl Clone for ResetReason
impl Clone for ResetReason
source§fn clone(&self) -> ResetReason
fn clone(&self) -> ResetReason
Returns a copy of the value. Read more
1.0.0§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 From<u32> for ResetReason
impl From<u32> for ResetReason
source§fn from(value: esp_reset_reason_t) -> Self
fn from(value: esp_reset_reason_t) -> Self
Converts to this type from the input type.
source§impl PartialEq for ResetReason
impl PartialEq 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 UnwindSafe for ResetReason
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)