#[repr(i32)]pub enum ColorMode {
Unknown = 0,
OnOff = 1,
Brightness = 2,
White = 7,
ColorTemperature = 11,
ColdWarmWhite = 19,
Rgb = 35,
RgbWhite = 39,
RgbColorTemperature = 47,
RgbColdWarmWhite = 51,
}Expand description
==================== LIGHT ====================
Variants§
Unknown = 0
OnOff = 1
Brightness = 2
White = 7
ColorTemperature = 11
ColdWarmWhite = 19
Rgb = 35
RgbWhite = 39
RgbColorTemperature = 47
RgbColdWarmWhite = 51
Implementations§
Source§impl ColorMode
impl ColorMode
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for ColorMode
impl Ord for ColorMode
Source§impl PartialOrd for ColorMode
impl PartialOrd for ColorMode
impl Copy for ColorMode
impl Eq for ColorMode
impl StructuralPartialEq for ColorMode
Auto Trait Implementations§
impl Freeze for ColorMode
impl RefUnwindSafe for ColorMode
impl Send for ColorMode
impl Sync for ColorMode
impl Unpin for ColorMode
impl UnsafeUnpin for ColorMode
impl UnwindSafe for ColorMode
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