(&self, vsock_config: String)
| 179 | } |
| 180 | |
| 181 | async fn vm_add_vsock(&self, vsock_config: String) -> Result<Optional<String>> { |
| 182 | let vsock_config = serde_json::from_str(&vsock_config).map_err(api_error)?; |
| 183 | self.vm_action(&VmAddVsock, vsock_config).await |
| 184 | } |
| 185 | |
| 186 | async fn vm_boot(&self) -> Result<()> { |
| 187 | self.vm_action(&VmBoot, ()).await.map(|_| ()) |