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

Interface Pausable

vm-migration/src/lib.rs:101–111  ·  view source on GitHub ↗

A Pausable component can be paused and resumed.

Source from the content-addressed store, hash-verified

99
100/// A Pausable component can be paused and resumed.
101pub trait Pausable {
102 /// Pause the component.
103 fn pause(&mut self) -> std::result::Result<(), MigratableError> {
104 Ok(())
105 }
106
107 /// Resume the component.
108 fn resume(&mut self) -> std::result::Result<(), MigratableError> {
109 Ok(())
110 }
111}
112
113/// A Snapshottable component snapshot section.
114///

Callers

nothing calls this directly

Implementers 15

ioapic.rsdevices/src/ioapic.rs
ivshmem.rsdevices/src/ivshmem.rs
pvmemcontrol.rsdevices/src/pvmemcontrol.rs
gic.rsdevices/src/gic.rs
aia.rsdevices/src/aia.rs
debug_console.rsdevices/src/debug_console.rs
pvpanic.rsdevices/src/pvpanic.rs
uart_pl011.rsdevices/src/legacy/uart_pl011.rs
serial.rsdevices/src/legacy/serial.rs
gpio_pl061.rsdevices/src/legacy/gpio_pl061.rs
msix.rspci/src/msix.rs
vfio.rspci/src/vfio.rs

Calls

no outgoing calls

Tested by

no test coverage detected