pub struct LightGroup {
pub name: String,
pub enabled: bool,
pub light_type: LightType,
pub lights: Vec<LightState>,
pub hardware_index: Vec<u32>,
pub disable_conditions: Vec<DisableConditions>,
}
Expand description
Internal representation of a light group.
Fields§
§name: String
§enabled: bool
§light_type: LightType
§lights: Vec<LightState>
§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.
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 LightGroup
impl Clone for LightGroup
Source§fn clone(&self) -> LightGroup
fn clone(&self) -> LightGroup
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for LightGroup
impl Debug for LightGroup
Source§impl<'de> Deserialize<'de> for LightGroup
impl<'de> Deserialize<'de> for LightGroup
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<LightGroup> for LightGroup
impl From<LightGroup> for LightGroup
Source§fn from(src: LightGroup) -> Self
fn from(src: LightGroup) -> Self
Converts to this type from the input type.
Source§impl From<LightGroup> for LightGroup
impl From<LightGroup> for LightGroup
Source§fn from(src: LightGroup) -> Self
fn from(src: LightGroup) -> Self
Converts to this type from the input type.
Source§impl PartialEq for LightGroup
impl PartialEq for LightGroup
Source§impl Serialize for LightGroup
impl Serialize for LightGroup
impl StructuralPartialEq for LightGroup
Auto Trait Implementations§
impl Freeze for LightGroup
impl RefUnwindSafe for LightGroup
impl Send for LightGroup
impl Sync for LightGroup
impl Unpin for LightGroup
impl UnwindSafe for LightGroup
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
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)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)