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:
Jeremy Whiting 2024-05-20 11:05:46 -06:00 committed by Vicki Pfau
parent 6e51d1556b
commit f6298efbc9
4 changed files with 46 additions and 85 deletions

View file

@ -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) {