pub struct LightGroupConfiguration {
pub name: String,
pub hardware_index: Vec<u32>,
pub light_type: LightType,
pub persist: bool,
pub disable_conditions: Vec<DisableConditions>,
}
Fields§
§name: String
Name of the light group.
Must be unique as this is the primary identifier for light groups.
hardware_index: Vec<u32>
Each light in the underlying fuchsia.hardware.light API has a unique, fixed index. We need to remember the index of the lights in this light group in order to write values back.
light_type: LightType
Type of values the light group supports, must match the underlying type of all the lights in the group.
persist: bool
True if the values of this light group should be persisted across reboots and restored when the settings service starts.
disable_conditions: Vec<DisableConditions>
A list of conditions under which the “enabled” field of the light group should be false, which signals to clients the light’s state is being overridden by external conditions, such as an LED dedicated to showing that a device’s mic is muted that is off when the mic is not muted.
Lights that are disabled can still have their value set, but the changes may not be noticeable to the user until the condition disabling/overriding ends.
Trait Implementations§
Source§impl Clone for LightGroupConfiguration
impl Clone for LightGroupConfiguration
Source§fn clone(&self) -> LightGroupConfiguration
fn clone(&self) -> LightGroupConfiguration
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for LightGroupConfiguration
impl Debug for LightGroupConfiguration
Source§impl<'de> Deserialize<'de> for LightGroupConfiguration
impl<'de> Deserialize<'de> for LightGroupConfiguration
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LightGroupConfiguration
impl PartialEq for LightGroupConfiguration
impl StructuralPartialEq for LightGroupConfiguration
Auto Trait Implementations§
impl Freeze for LightGroupConfiguration
impl RefUnwindSafe for LightGroupConfiguration
impl Send for LightGroupConfiguration
impl Sync for LightGroupConfiguration
impl Unpin for LightGroupConfiguration
impl UnwindSafe for LightGroupConfiguration
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)