pub async fn get_machines(
config: &Config,
dbus_cell: &Arc<OnceCell<Connection>>,
host_stats: &RwLock<MachineStats>,
) -> Result<HashMap<String, u32>>Expand description
Enumerate machines and their leader PIDs, over machined’s
io.systemd.Machine.List varlink API (systemd v257+) when enabled,
falling back to machined’s D-Bus API. Records the transport used in the
host’s varlink_usage.machines gauge.