#[non_exhaustive]#[repr(u8)]pub enum PowerModeTarget {
FullPower = 0,
PowerSave = 1,
}Expand description
The power-mode target an effect applies to, packed into setRgbClusterEffect.
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.
Trait Implementations§
Source§impl Clone for PowerModeTarget
impl Clone for PowerModeTarget
Source§fn clone(&self) -> PowerModeTarget
fn clone(&self) -> PowerModeTarget
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 PowerModeTarget
Source§impl Debug for PowerModeTarget
impl Debug for PowerModeTarget
impl Eq for PowerModeTarget
Source§impl From<PowerModeTarget> for u8
impl From<PowerModeTarget> for u8
Source§fn from(enum_value: PowerModeTarget) -> Self
fn from(enum_value: PowerModeTarget) -> Self
Converts to this type from the input type.
Source§impl Hash for PowerModeTarget
impl Hash for PowerModeTarget
Source§impl PartialEq for PowerModeTarget
impl PartialEq for PowerModeTarget
impl StructuralPartialEq for PowerModeTarget
Source§impl TryFrom<u8> for PowerModeTarget
impl TryFrom<u8> for PowerModeTarget
Source§type Error = TryFromPrimitiveError<PowerModeTarget>
type Error = TryFromPrimitiveError<PowerModeTarget>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for PowerModeTarget
impl TryFromPrimitive for PowerModeTarget
const NAME: &'static str = "PowerModeTarget"
type Primitive = u8
type Error = TryFromPrimitiveError<PowerModeTarget>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
Auto Trait Implementations§
impl Freeze for PowerModeTarget
impl RefUnwindSafe for PowerModeTarget
impl Send for PowerModeTarget
impl Sync for PowerModeTarget
impl Unpin for PowerModeTarget
impl UnsafeUnpin for PowerModeTarget
impl UnwindSafe for PowerModeTarget
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