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

Method vmm_ping

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

Source from the content-addressed store, hash-verified

111#[interface(name = "org.cloudhypervisor.DBusApi1")]
112impl DBusApi {
113 async fn vmm_ping(&self) -> Result<String> {
114 let api_sender = self.clone_api_sender().await;
115 let api_notifier = self.clone_api_notifier()?;
116
117 let result = blocking::unblock(move || VmmPing.send(api_notifier, api_sender, ()))
118 .await
119 .map_err(api_error)?;
120 serde_json::to_string(&result).map_err(api_error)
121 }
122
123 async fn vmm_shutdown(&self) -> Result<()> {
124 let api_sender = self.clone_api_sender().await;

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