#[non_exhaustive]pub struct ControlInfo {
pub capabilities: ControlCapabilities,
pub min: u16,
pub max: u16,
pub resolution: u16,
pub max_levels: u8,
}Expand description
Capabilities and range of an illumination control.
Values are in Lumens for brightness and Kelvin for color temperature.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.capabilities: ControlCapabilitiesControl capabilities.
min: u16Minimum value. When min == max only one setting exists and the
corresponding setter is unsupported.
max: u16Maximum value.
resolution: u16Resolution: valid values satisfy (value - min) % resolution == 0.
max_levels: u8Maximum number of non-linear levels (0 if non-linear levels are
unsupported).
Trait Implementations§
Source§impl Clone for ControlInfo
impl Clone for ControlInfo
Source§fn clone(&self) -> ControlInfo
fn clone(&self) -> ControlInfo
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 ControlInfo
Source§impl Debug for ControlInfo
impl Debug for ControlInfo
impl Eq for ControlInfo
Source§impl Hash for ControlInfo
impl Hash for ControlInfo
Source§impl PartialEq for ControlInfo
impl PartialEq for ControlInfo
impl StructuralPartialEq for ControlInfo
Auto Trait Implementations§
impl Freeze for ControlInfo
impl RefUnwindSafe for ControlInfo
impl Send for ControlInfo
impl Sync for ControlInfo
impl Unpin for ControlInfo
impl UnsafeUnpin for ControlInfo
impl UnwindSafe for ControlInfo
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