pub enum LightSleep {
Ended,
Refused,
}Available on crate feature
unstable only.Expand description
The result of a light sleep.
§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.
Variants§
Ended
The call returned from the sleep.
The sleep may also never have started, because no wakeup source was enabled, because the hardware rejected the request, or because a sleep limit was too short for the transition to catch. This result does not tell those apart from a sleep that a wakeup source ended.
Refused
A wakeup source refused the sleep, so the chip stayed awake.
The refusal holds until the state that caused it changes, so a second call refuses too. Wait for an interrupt instead.
Trait Implementations§
Source§impl Clone for LightSleep
impl Clone for LightSleep
impl Copy for LightSleep
Source§impl Debug for LightSleep
impl Debug for LightSleep
impl Eq for LightSleep
Source§impl PartialEq for LightSleep
impl PartialEq for LightSleep
impl StructuralPartialEq for LightSleep
Auto Trait Implementations§
impl Freeze for LightSleep
impl RefUnwindSafe for LightSleep
impl Send for LightSleep
impl Sync for LightSleep
impl Unpin for LightSleep
impl UnsafeUnpin for LightSleep
impl UnwindSafe for LightSleep
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,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)