#[non_exhaustive]#[repr(u8)]pub enum SleepDisruptionSeverity {
None = 0,
Low = 1,
Medium = 2,
High = 3,
}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§
Trait Implementations§
Source§impl Clone for SleepDisruptionSeverity
impl Clone for SleepDisruptionSeverity
Source§fn clone(&self) -> SleepDisruptionSeverity
fn clone(&self) -> SleepDisruptionSeverity
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 SleepDisruptionSeverity
impl Debug for SleepDisruptionSeverity
Source§impl Hash for SleepDisruptionSeverity
impl Hash for SleepDisruptionSeverity
Source§impl PartialEq for SleepDisruptionSeverity
impl PartialEq for SleepDisruptionSeverity
Source§fn eq(&self, other: &SleepDisruptionSeverity) -> bool
fn eq(&self, other: &SleepDisruptionSeverity) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SleepDisruptionSeverity
impl Eq for SleepDisruptionSeverity
impl StructuralPartialEq for SleepDisruptionSeverity
Auto Trait Implementations§
impl Freeze for SleepDisruptionSeverity
impl RefUnwindSafe for SleepDisruptionSeverity
impl Send for SleepDisruptionSeverity
impl Sync for SleepDisruptionSeverity
impl Unpin for SleepDisruptionSeverity
impl UnsafeUnpin for SleepDisruptionSeverity
impl UnwindSafe for SleepDisruptionSeverity
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