[−][src]Struct huelib::resource::group::StateModifier
Struct for modifying the group state.
Implementations
impl StateModifier
[src]
pub fn on(self, value: bool) -> Self
[src]
Turns the lights on or off.
pub fn brightness(self, modifier_type: ModifierType, value: u8) -> Self
[src]
Sets the brightness of the lights.
pub fn hue(self, modifier_type: ModifierType, value: u16) -> Self
[src]
Sets the hue of the lights.
pub fn saturation(self, modifier_type: ModifierType, value: u8) -> Self
[src]
Sets the saturation of the lights.
pub fn color(self, value: Color) -> Self
[src]
Sets the color (and brightness) of the lights.
pub fn color_temperature(self, modifier_type: ModifierType, value: u16) -> Self
[src]
Sets the color temperature of the lights.
pub fn alert(self, value: Alert) -> Self
[src]
Sets the alert effect of the lights.
pub fn effect(self, value: Effect) -> Self
[src]
Sets the dynamic effect of the lights.
pub fn transition_time(self, value: u16) -> Self
[src]
Sets the transition duration of state changes.
This is given as a multiple of 100ms.
pub fn scene(self, value: impl Into<String>) -> Self
[src]
Sets the scene identifier of the group.
Trait Implementations
impl Clone for StateModifier
[src]
fn clone(&self) -> StateModifier
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StateModifier
[src]
impl Default for StateModifier
[src]
fn default() -> StateModifier
[src]
impl Modifier for StateModifier
[src]
impl PartialEq<StateModifier> for StateModifier
[src]
fn eq(&self, other: &StateModifier) -> bool
[src]
fn ne(&self, other: &StateModifier) -> bool
[src]
impl Serialize for StateModifier
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralPartialEq for StateModifier
[src]
Auto Trait Implementations
impl RefUnwindSafe for StateModifier
impl Send for StateModifier
impl Sync for StateModifier
impl Unpin for StateModifier
impl UnwindSafe for StateModifier
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Sealed<T> for T where
T: ?Sized,
T: ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,