[][src]Trait smartplug::plugs::Smartplug

pub trait Smartplug {
    fn set_power(&self, power: bool) -> Result<(), Error>;
}

Required methods

fn set_power(&self, power: bool) -> Result<(), Error>

Set the power state of a smart plug. true means it's powered on, and false means off.

Loading content...

Implementors

impl Smartplug for Kasa[src]

Loading content...