pub enum LightKind {
Rgb,
Rgbw,
Cct,
Light,
}Expand description
The four Gen2/Gen3 light-output component kinds shelly light controls.
Variants§
Implementations§
Source§impl LightKind
impl LightKind
Sourcepub fn as_str(self) -> &'static str
pub fn as_str(self) -> &'static str
Component key prefix as it appears in Shelly.GetStatus (e.g. “rgb”).
Sourcepub fn rpc_namespace(self) -> &'static str
pub fn rpc_namespace(self) -> &'static str
RPC method namespace (e.g. “RGB” for “RGB.Set”).
pub fn supports_rgb(self) -> bool
pub fn supports_white(self) -> bool
pub fn supports_ct(self) -> bool
Sourcepub fn brightness_min(self) -> u8
pub fn brightness_min(self) -> u8
Minimum accepted brightness: RGB/RGBW require 1, CCT/Light allow 0.
Trait Implementations§
impl Copy for LightKind
impl Eq for LightKind
impl StructuralPartialEq for LightKind
Auto Trait Implementations§
impl Freeze for LightKind
impl RefUnwindSafe for LightKind
impl Send for LightKind
impl Sync for LightKind
impl Unpin for LightKind
impl UnsafeUnpin for LightKind
impl UnwindSafe for LightKind
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