Struct lifx_core::ProductInfo
source · [−]pub struct ProductInfo {
pub name: &'static str,
pub color: bool,
pub infrared: bool,
pub multizone: bool,
pub chain: bool,
pub hev: bool,
pub matrix: bool,
pub relays: bool,
pub buttons: bool,
pub temperature_range: TemperatureRange,
}
Fields
name: &'static str
color: bool
The light changes physical appearance when the Hue value is changed
infrared: bool
The light supports emitting infrared light
multizone: bool
The light supports a 1D linear array of LEDs (the Z and Beam)
chain: bool
The light may be connected to physically separated hardware (currently only the LIFX Tile)
hev: bool
The light supports emitted HEV light
matrix: bool
The light supports a 2D matrix of LEDs (the Tile and Candle)
relays: bool
The device has relays for controlling physical power to something (the LIFX switch)
The device has physical buttons to press (the LIFX switch)
temperature_range: TemperatureRange
The temperature range this device supports
Trait Implementations
sourceimpl Clone for ProductInfo
impl Clone for ProductInfo
sourcefn clone(&self) -> ProductInfo
fn clone(&self) -> ProductInfo
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ProductInfo
impl Debug for ProductInfo
sourceimpl PartialEq<ProductInfo> for ProductInfo
impl PartialEq<ProductInfo> for ProductInfo
sourcefn eq(&self, other: &ProductInfo) -> bool
fn eq(&self, other: &ProductInfo) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ProductInfo) -> bool
fn ne(&self, other: &ProductInfo) -> bool
This method tests for !=
.
impl Copy for ProductInfo
impl Eq for ProductInfo
impl StructuralEq for ProductInfo
impl StructuralPartialEq for ProductInfo
Auto Trait Implementations
impl RefUnwindSafe for ProductInfo
impl Send for ProductInfo
impl Sync for ProductInfo
impl Unpin for ProductInfo
impl UnwindSafe for ProductInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more