mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-13 01:41:59 -04:00
manager: Implement fan_control_state
This commit is contained in:
parent
853ce3dd84
commit
406988fbdf
2 changed files with 15 additions and 4 deletions
|
@ -69,4 +69,8 @@ impl<'dbus> SystemdUnit<'dbus> {
|
|||
self.proxy.stop("fail").await?;
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn active(&self) -> Result<bool> {
|
||||
Ok(self.proxy.active_state().await? == "active")
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue