pub async fn update_version(
connection: Connection,
locked_machine_stats: Arc<RwLock<MachineStats>>,
) -> Result<()>Expand description
Async wrapper than can update system stats when passed a locked struct
See update_system_stats above: the D-Bus call runs before the write lock
is taken so it doesn’t hold the shared lock for the round trip’s duration.