MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / vm_info

Method vm_info

vmm/src/api/dbus/mod.rs:239–247  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

237 }
238
239 async fn vm_info(&self) -> Result<String> {
240 let api_sender = self.clone_api_sender().await;
241 let api_notifier = self.clone_api_notifier()?;
242
243 let result = blocking::unblock(move || VmInfo.send(api_notifier, api_sender, ()))
244 .await
245 .map_err(api_error)?;
246 serde_json::to_string(&result).map_err(api_error)
247 }
248
249 async fn vm_pause(&self) -> Result<()> {
250 self.vm_action(&VmPause, ()).await.map(|_| ())

Callers 1

requestMethod · 0.45

Calls 3

clone_api_senderMethod · 0.80
clone_api_notifierMethod · 0.80
sendMethod · 0.45

Tested by

no test coverage detected