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

Method vm_pause

vmm/src/lib.rs:1892–1898  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

1890 }
1891
1892 fn vm_pause(&mut self) -> result::Result<(), VmError> {
1893 if let Some(ref mut vm) = self.vm {
1894 vm.pause().map_err(VmError::Pause)
1895 } else {
1896 Err(VmError::VmNotRunning)
1897 }
1898 }
1899
1900 fn vm_resume(&mut self) -> result::Result<(), VmError> {
1901 if let Some(ref mut vm) = self.vm {

Callers 1

api_vm_pauseMethod · 0.45

Calls 1

pauseMethod · 0.45

Tested by

no test coverage detected