Lines Matching +full:power +full:- +full:button

4 // SPDX-License-Identifier: Apache-2.0
9 //! This API is a synchronous, [mpsc](https://doc.rust-lang.org/std/sync/mpsc/)
11 //! Cloud Hypervisor threads. The IPC follows a command-response protocol, i.e.
192 /// Error triggering power button
193 #[error("Error triggering power button")]
281 fn vm_create(&mut self, config: Box<VmConfig>) -> Result<(), VmError>; in vm_create()
283 fn vm_boot(&mut self) -> Result<(), VmError>; in vm_boot()
285 fn vm_pause(&mut self) -> Result<(), VmError>; in vm_pause()
287 fn vm_resume(&mut self) -> Result<(), VmError>; in vm_resume()
289 fn vm_snapshot(&mut self, destination_url: &str) -> Result<(), VmError>; in vm_snapshot()
291 fn vm_restore(&mut self, restore_cfg: RestoreConfig) -> Result<(), VmError>; in vm_restore()
294 fn vm_coredump(&mut self, destination_url: &str) -> Result<(), VmError>; in vm_coredump()
296 fn vm_shutdown(&mut self) -> Result<(), VmError>; in vm_shutdown()
298 fn vm_reboot(&mut self) -> Result<(), VmError>; in vm_reboot()
300 fn vm_info(&self) -> Result<VmInfoResponse, VmError>; in vm_info()
302 fn vmm_ping(&self) -> VmmPingResponse; in vmm_ping()
304 fn vm_delete(&mut self) -> Result<(), VmError>; in vm_delete()
306 fn vmm_shutdown(&mut self) -> Result<(), VmError>; in vmm_shutdown()
313 ) -> Result<(), VmError>; in vm_resize()
315 fn vm_resize_zone(&mut self, id: String, desired_ram: u64) -> Result<(), VmError>; in vm_resize_zone()
317 fn vm_add_device(&mut self, device_cfg: DeviceConfig) -> Result<Option<Vec<u8>>, VmError>; in vm_add_device()
322 ) -> Result<Option<Vec<u8>>, VmError>; in vm_add_user_device()
324 fn vm_remove_device(&mut self, id: String) -> Result<(), VmError>; in vm_remove_device()
326 fn vm_add_disk(&mut self, disk_cfg: DiskConfig) -> Result<Option<Vec<u8>>, VmError>; in vm_add_disk()
328 fn vm_add_fs(&mut self, fs_cfg: FsConfig) -> Result<Option<Vec<u8>>, VmError>; in vm_add_fs()
330 fn vm_add_pmem(&mut self, pmem_cfg: PmemConfig) -> Result<Option<Vec<u8>>, VmError>; in vm_add_pmem()
332 fn vm_add_net(&mut self, net_cfg: NetConfig) -> Result<Option<Vec<u8>>, VmError>; in vm_add_net()
334 fn vm_add_vdpa(&mut self, vdpa_cfg: VdpaConfig) -> Result<Option<Vec<u8>>, VmError>; in vm_add_vdpa()
336 fn vm_add_vsock(&mut self, vsock_cfg: VsockConfig) -> Result<Option<Vec<u8>>, VmError>; in vm_add_vsock()
338 fn vm_counters(&mut self) -> Result<Option<Vec<u8>>, VmError>; in vm_counters()
340 fn vm_power_button(&mut self) -> Result<(), VmError>; in vm_power_button()
345 ) -> Result<(), MigratableError>; in vm_receive_migration()
350 ) -> Result<(), MigratableError>; in vm_send_migration()
352 fn vm_nmi(&mut self) -> Result<(), VmError>; in vm_nmi()
369 Box<dyn FnOnce(&mut dyn RequestHandler) -> Result<bool, VmmError> + Send + 'static>;
376 ) -> ApiResult<ApiResponsePayload> { in get_response()
393 ) -> ApiResult<Option<Body>> { in get_response_body()
407 fn request(&self, body: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest; in request()
414 ) -> ApiResult<Self::ResponseBody>; in send()
427 ) -> ApiRequest { in request()
449 ) -> ApiResult<Self::ResponseBody> { in send()
464 ) -> ApiRequest { in request()
486 ) -> ApiResult<Self::ResponseBody> { in send()
501 ) -> ApiRequest { in request()
523 ) -> ApiResult<Self::ResponseBody> { in send()
538 ) -> ApiRequest { in request()
560 ) -> ApiResult<Self::ResponseBody> { in send()
575 ) -> ApiRequest { in request()
597 ) -> ApiResult<Self::ResponseBody> { in send()
612 ) -> ApiRequest { in request()
634 ) -> ApiResult<Self::ResponseBody> { in send()
649 ) -> ApiRequest { in request()
671 ) -> ApiResult<Self::ResponseBody> { in send()
686 ) -> ApiRequest { in request()
708 ) -> ApiResult<Self::ResponseBody> { in send()
719 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
741 ) -> ApiResult<Self::ResponseBody> { in send()
758 ) -> ApiRequest { in request()
780 ) -> ApiResult<Self::ResponseBody> { in send()
791 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
813 ) -> ApiResult<Self::ResponseBody> { in send()
828 ) -> ApiRequest { in request()
850 ) -> ApiResult<()> { in send()
863 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
885 ) -> ApiResult<Self::ResponseBody> { in send()
896 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
918 ) -> ApiResult<VmInfoResponse> { in send()
934 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
956 ) -> ApiResult<Self::ResponseBody> { in send()
967 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
989 ) -> ApiResult<Self::ResponseBody> { in send()
1000 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
1022 ) -> ApiResult<Self::ResponseBody> { in send()
1033 fn request(&self, data: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
1055 ) -> ApiResult<Self::ResponseBody> { in send()
1070 ) -> ApiRequest { in request()
1092 ) -> ApiResult<Self::ResponseBody> { in send()
1107 ) -> ApiRequest { in request()
1133 ) -> ApiResult<Self::ResponseBody> { in send()
1148 ) -> ApiRequest { in request()
1170 ) -> ApiResult<Self::ResponseBody> { in send()
1185 ) -> ApiRequest { in request()
1207 ) -> ApiResult<Self::ResponseBody> { in send()
1218 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
1240 ) -> ApiResult<Self::ResponseBody> { in send()
1251 fn request(&self, data: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
1273 ) -> ApiResult<Self::ResponseBody> { in send()
1288 ) -> ApiRequest { in request()
1310 ) -> ApiResult<Self::ResponseBody> { in send()
1325 ) -> ApiRequest { in request()
1347 ) -> ApiResult<Self::ResponseBody> { in send()
1358 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
1377 ) -> ApiResult<VmmPingResponse> { in send()
1393 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
1410 fn send(&self, api_evt: EventFd, api_sender: Sender<ApiRequest>, data: ()) -> ApiResult<()> { in send()
1423 fn request(&self, _: Self::RequestBody, response_sender: Sender<ApiResponse>) -> ApiRequest { in request()
1445 ) -> ApiResult<Self::ResponseBody> { in send()