(&self)
| 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)?; |
no test coverage detected