Module http

Module http 

Source
Expand description

Control LIFX lights over the internet.

Modules§

prelude
Contains useful utilities for working with the LIFX HTTP API.

Structs§

Activate
A configurable request for activating a specified scene.
Breathe
Specifies a “breathe” effect, wherein the light color fades smoothly to transition.
ChangeState
A scoped request to uniformly change the state for all selected bulbs.
Client
The crux of the HTTP API. Start here.
Cycle
Specifies a list of effects to cycle through. Each request causes the cycle to advance.
Pulse
Specifies a “pulse” effect, wherein the light color abruptly changes.
Request
Represents a terminal request.
Scenes
A waypoint in working with scenes.
Selected
A scoped request that can be used to get or set light states.
Selectors
A struct representing an aggregate of selectors.
SetState
A scoped request to uniformly set the state for all selected bulbs.
SetStates
A scoped request to uniformly set the state for all selected bulbs.
State
Encodes a desired final state.
StateChange
Encodes a desired state change.
Toggle
A scoped request to toggle specific lights which may be further customized.

Enums§

Color
Specifies the desired color setting of a light.
ColorParseError
Represents an error encountered while deserializing a color.
ColorValidationError
Represents a (local) color validation error.
Error
Represents an error encountered when sending a request.
Selector
Selectors are used to identify one or more lights belonging to a particular account.
SelectorParseError
Represents a selector deserialization error.

Traits§

AsRequest
Trait enabling conversion of non-terminal request builders to requests.
Combine
Enables chaining of non-randomized selectors.
Randomize
Enables randomization of non-randomized selectors.
Retry
Trait enabling retrying of failed requests.
Select
Marker trait indicating the potential for use in identifying devices.
Send
Trait for configurable (non-terminal) requests to be sent conveniently.

Type Aliases§

ClientResult
The result type for all requests made with the client.