pub enum SetLevels {
Reset,
Linear {
min: u16,
max: u16,
step: u16,
},
NonLinear {
start_index: u8,
level_count: u8,
values: Vec<u16>,
},
}Expand description
A level configuration to write with setBrightnessLevels /
setColorTemperatureLevels.
Variants§
Reset
Reset the level configuration to the factory defaults.
Linear
Configure evenly spaced linear levels.
Fields
NonLinear
Configure an explicit list of non-linear levels.
Trait Implementations§
impl Eq for SetLevels
impl StructuralPartialEq for SetLevels
Auto Trait Implementations§
impl Freeze for SetLevels
impl RefUnwindSafe for SetLevels
impl Send for SetLevels
impl Sync for SetLevels
impl Unpin for SetLevels
impl UnsafeUnpin for SetLevels
impl UnwindSafe for SetLevels
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