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

Method vmm_shutdown

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

Source from the content-addressed store, hash-verified

121 }
122
123 async fn vmm_shutdown(&self) -> Result<()> {
124 let api_sender = self.clone_api_sender().await;
125 let api_notifier = self.clone_api_notifier()?;
126
127 blocking::unblock(move || VmmShutdown.send(api_notifier, api_sender, ()))
128 .await
129 .map_err(api_error)
130 }
131
132 async fn vm_add_device(&self, device_config: String) -> Result<Optional<String>> {
133 let device_config = serde_json::from_str(&device_config).map_err(api_error)?;

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