Enum esp_idf_svc::hal::reset::WakeupReason
source · pub enum WakeupReason {
Unknown,
ULP,
Button,
Timer,
Other(u32),
}
Expand description
Wakeup reasons
Variants§
Implementations§
source§impl WakeupReason
impl WakeupReason
sourcepub fn get() -> WakeupReason
pub fn get() -> WakeupReason
Get the reason for the wakeup
Trait Implementations§
source§impl Clone for WakeupReason
impl Clone for WakeupReason
source§fn clone(&self) -> WakeupReason
fn clone(&self) -> WakeupReason
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 WakeupReason
impl Debug for WakeupReason
source§impl From<u32> for WakeupReason
impl From<u32> for WakeupReason
source§fn from(value: u32) -> WakeupReason
fn from(value: u32) -> WakeupReason
Converts to this type from the input type.
source§impl PartialEq for WakeupReason
impl PartialEq for WakeupReason
impl Copy for WakeupReason
impl Eq for WakeupReason
impl StructuralPartialEq for WakeupReason
Auto Trait Implementations§
impl Freeze for WakeupReason
impl RefUnwindSafe for WakeupReason
impl Send for WakeupReason
impl Sync for WakeupReason
impl Unpin for WakeupReason
impl UnwindSafe for WakeupReason
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
)