Struct elgato_keylight::keylight::KeyLight[][src]

pub struct KeyLight { /* fields omitted */ }

Implementations

Create a new Keylight from a known IP.

Arguments

  • addr - IP address to the keylight
  • poll - If the library should poll the light for updates

Create a new Keylight from device name This uses zeroconf to discover the light on the network.

Arguments

  • name - Name of the lamp like “Key Light Left” or whatever your light is named
  • poll - If the library should poll the light for updates

Set the brightness of the light

Arguments

  • brightness - Value between 0-100

Set the brightness of the light relative to the current value

Arguments

  • brightness - f64 between -1.0 and 1.0

Set the color temperature of the light

Arguments

  • temperature - Value between 2900 - 7000 (Kelvin)

Turn on/off the light

Arguments

  • power - true: on, false: off

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.