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

Class Snapshot

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

Source from the content-addressed store, hash-verified

158/// the actual device snapshot data.
159#[derive(Clone, Default, Deserialize, Serialize)]
160pub struct Snapshot {
161 /// The Snapshottable component snapshots.
162 pub snapshots: std::collections::BTreeMap<String, Snapshot>,
163
164 /// The Snapshottable component's snapshot data.
165 /// A map of snapshot sections, indexed by the section ids.
166 pub snapshot_data: Option<SnapshotData>,
167}
168
169impl Snapshot {
170 pub fn from_data(data: SnapshotData) -> Self {

Callers 5

snapshotMethod · 0.85
snapshotMethod · 0.85
new_from_stateMethod · 0.85
snapshotMethod · 0.85
stateMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected