pub enum TemperatureRange {
Variable {
min: u16,
max: u16,
},
Fixed(u16),
None,
}
Variants§
Variable
The device supports a range of temperatures
Fixed(u16)
The device only supports 1 temperature
None
For devices that aren’t lighting products (the LIFX switch)
Trait Implementations§
Source§impl Clone for TemperatureRange
impl Clone for TemperatureRange
Source§fn clone(&self) -> TemperatureRange
fn clone(&self) -> TemperatureRange
Returns a duplicate 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 TemperatureRange
impl Debug for TemperatureRange
Source§impl PartialEq for TemperatureRange
impl PartialEq for TemperatureRange
impl Copy for TemperatureRange
impl Eq for TemperatureRange
impl StructuralPartialEq for TemperatureRange
Auto Trait Implementations§
impl Freeze for TemperatureRange
impl RefUnwindSafe for TemperatureRange
impl Send for TemperatureRange
impl Sync for TemperatureRange
impl Unpin for TemperatureRange
impl UnwindSafe for TemperatureRange
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