Struct tplinker::devices::KL110[][src]

pub struct KL110<T: Protocol> { /* fields omitted */ }
Expand description

A KL110 dimmable smart lightbulb

When directly creating a device using the from_* methods below, you must make sure that the address you pass is indeed that of a KL110, as there is no further checking.

Implementations

Make a KL110 device from an address string

Make a KL110 device from an address struct

Make a KL110 device from an already constructed raw device

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Send a message to a device and return its parsed response Read more

Get system information

Get the alias of the device Read more

Set the alias of the device Read more

Get the latitude and longitude coordinates

Reboot the device in 1 second

Reboot the device with a specified delay

Get percentage brightness of bulb

Set percentage brightness of bulb

Type of the emeter Read more

Get the realtime energy usage

Get the daily energy usage for a given month

Get the monthly energy usage for a given year

Get the current state of the light

Set the state of the light Read more

Check whether the device is on

Switch the device on

Switch the device off

Check whether the device is off

Toggle the device’s on state 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.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.