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

Method snapshot

devices/src/pvmemcontrol.rs:798–805  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

796 }
797
798 fn snapshot(&mut self) -> std::result::Result<Snapshot, MigratableError> {
799 let mut snapshot = Snapshot::new_from_state(&())?;
800
801 // Snapshot PciConfiguration
802 snapshot.add_snapshot(self.configuration.id(), self.configuration.snapshot()?);
803
804 Ok(snapshot)
805 }
806}
807
808impl Transportable for PvmemcontrolPciDevice {}

Callers

nothing calls this directly

Calls 2

add_snapshotMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected