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