Function wakeup_cause

Source
pub fn wakeup_cause() -> SleepSource
Available on crate feature unstable only.
Expand description

Retrieves the cause of the last wakeup event as a SleepSource enum value.

ยงStability

This API is marked as unstable and is only available when the unstable crate feature is enabled. This comes with no stability guarantees, and could be changed or removed at any time.