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

Method add_snapshot

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

Add a sub-component's Snapshot to the Snapshot.

(&mut self, id: String, snapshot: Snapshot)

Source from the content-addressed store, hash-verified

184
185 /// Add a sub-component's Snapshot to the Snapshot.
186 pub fn add_snapshot(&mut self, id: String, snapshot: Snapshot) {
187 self.snapshots.insert(id, snapshot);
188 }
189
190 /// Generate the state data from the snapshot
191 pub fn to_state<'a, T>(&'a self) -> Result<T, MigratableError>

Callers 9

snapshotMethod · 0.80
snapshotMethod · 0.80
snapshotMethod · 0.80
snapshotMethod · 0.80
snapshotMethod · 0.80
snapshotMethod · 0.80
snapshotMethod · 0.80
snapshotMethod · 0.80
snapshotMethod · 0.80

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected