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

Method snapshot

devices/src/pvpanic.rs:258–265  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

256 }
257
258 fn snapshot(&mut self) -> std::result::Result<Snapshot, MigratableError> {
259 let mut snapshot = Snapshot::new_from_state(&self.state())?;
260
261 // Snapshot PciConfiguration
262 snapshot.add_snapshot(self.configuration.id(), self.configuration.snapshot()?);
263
264 Ok(snapshot)
265 }
266}
267
268impl Transportable for PvPanicDevice {}

Callers

nothing calls this directly

Calls 3

add_snapshotMethod · 0.80
stateMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected