#[non_exhaustive]#[repr(u8)]pub enum BacklightEffect {
Static = 0,
None = 1,
Breathing = 2,
Contrast = 3,
Reaction = 4,
Random = 5,
Waves = 6,
}Expand description
A predefined backlight effect.
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.
Static = 0
The “static” effect (default).
None = 1
The “none” effect.
Breathing = 2
The “breathing light” effect.
Contrast = 3
The “contrast” effect.
Reaction = 4
The “reaction” effect.
Random = 5
The “random” effect.
Waves = 6
The “waves” effect.
Trait Implementations§
Source§impl Clone for BacklightEffect
impl Clone for BacklightEffect
Source§fn clone(&self) -> BacklightEffect
fn clone(&self) -> BacklightEffect
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 moreimpl Copy for BacklightEffect
Source§impl Debug for BacklightEffect
impl Debug for BacklightEffect
impl Eq for BacklightEffect
Source§impl From<BacklightEffect> for u8
impl From<BacklightEffect> for u8
Source§fn from(enum_value: BacklightEffect) -> Self
fn from(enum_value: BacklightEffect) -> Self
Converts to this type from the input type.
Source§impl Hash for BacklightEffect
impl Hash for BacklightEffect
Source§impl PartialEq for BacklightEffect
impl PartialEq for BacklightEffect
impl StructuralPartialEq for BacklightEffect
Source§impl TryFrom<u8> for BacklightEffect
impl TryFrom<u8> for BacklightEffect
Source§type Error = TryFromPrimitiveError<BacklightEffect>
type Error = TryFromPrimitiveError<BacklightEffect>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for BacklightEffect
impl TryFromPrimitive for BacklightEffect
const NAME: &'static str = "BacklightEffect"
type Primitive = u8
type Error = TryFromPrimitiveError<BacklightEffect>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for BacklightEffect
impl RefUnwindSafe for BacklightEffect
impl Send for BacklightEffect
impl Sync for BacklightEffect
impl Unpin for BacklightEffect
impl UnsafeUnpin for BacklightEffect
impl UnwindSafe for BacklightEffect
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