smartplug 0.1.0

A small package for controlling smart outlets.
Documentation
1
2
3
4
pub trait Smartplug {
    /// Set the power state of a smart plug. `true` means it's powered on, and `false` means off.
    fn set_power(&self, power: bool) -> Result<(), std::io::Error>;
}