mirror of
https://gitlab.steamos.cloud/holo/steamos-manager.git
synced 2025-07-16 03:06:47 -04:00
Tweak the Subprocess api a bit.
From feedback from Andres changed SubProcess to just Job for possible further changes to have the manager do things itself without launching subprocesses. Changed names objectpath to jobpath, exit_code to result, etc. Removed Kill and added a force parameter to Cancel instead. Also ran cargo fmt which tweaked indentation in a couple places. Alos removed ExitCode, users can just call Wait again if needed.
This commit is contained in:
parent
6e51d1556b
commit
f6298efbc9
4 changed files with 46 additions and 85 deletions
|
@ -233,7 +233,7 @@ async fn main() -> Result<()> {
|
|||
}
|
||||
Commands::SetWifiBackend { backend } => {
|
||||
proxy.set_wifi_backend(*backend as u32).await?;
|
||||
},
|
||||
}
|
||||
Commands::GetWifiBackend => {
|
||||
let backend = proxy.wifi_backend().await?;
|
||||
match WifiBackend::try_from(backend) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue