1
0
Fork 0
forked from sigil-03/power

add set functionality to control outlets

This commit is contained in:
sigil-03 2025-04-06 15:21:38 -06:00
parent 987150c9b6
commit 633a57ff23
5 changed files with 42 additions and 22 deletions

View file

@ -1,5 +1,5 @@
use crate::types::Error;
use crate::types::{Error, PowerState};
pub trait Control {
async fn set_power(&self) -> Result<(), Error>;
async fn set_power(&self, state: PowerState) -> Result<(), Error>;
}