#[non_exhaustive]#[repr(u8)]pub enum SleepLevel {
Unmeasurable = 0,
Awake = 1,
Light = 2,
Deep = 3,
Rem = 4,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Implementations§
Source§impl SleepLevel
impl SleepLevel
Trait Implementations§
Source§impl Clone for SleepLevel
impl Clone for SleepLevel
Source§fn clone(&self) -> SleepLevel
fn clone(&self) -> SleepLevel
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 moreSource§impl Debug for SleepLevel
impl Debug for SleepLevel
Source§impl Hash for SleepLevel
impl Hash for SleepLevel
Source§impl PartialEq for SleepLevel
impl PartialEq for SleepLevel
Source§fn eq(&self, other: &SleepLevel) -> bool
fn eq(&self, other: &SleepLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SleepLevel
impl Eq for SleepLevel
impl StructuralPartialEq for SleepLevel
Auto Trait Implementations§
impl Freeze for SleepLevel
impl RefUnwindSafe for SleepLevel
impl Send for SleepLevel
impl Sync for SleepLevel
impl Unpin for SleepLevel
impl UnsafeUnpin for SleepLevel
impl UnwindSafe for SleepLevel
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