pub struct SnapshotSpec {
pub guest_flush: GuestFlush,
pub name: String,
pub group: Option<String>,
pub dest_dir: Option<PathBuf>,
pub source_sandbox: String,
pub labels: Vec<(String, String)>,
pub force: bool,
pub record_integrity: bool,
pub full: bool,
}Expand description
Inputs to create a snapshot.
Installed artifacts live at dest_dir/<group>/<snapshot_id>. A friendly name
is scoped to the group; it does not change the portable snapshot identity.
Save/load moves artifacts between stores without starting a VM.
Fields§
§guest_flush: GuestFlushOptional guest writeback policy. Auto flushes live disk-only captures, not full RAM.
name: StringFriendly member name within a group; empty selects a generated name.
group: Option<String>Local snapshot group; defaults to the source sandbox’s name.
dest_dir: Option<PathBuf>Group-store root. None selects the default snapshots directory.
source_sandbox: StringSource sandbox. Disk capture accepts running, paused, or stopped sources.
labels: Vec<(String, String)>User-supplied labels.
force: boolOverwrite a direct archive destination; installed members remain immutable.
record_integrity: boolCompute and record upper-layer content integrity at creation time.
full: boolCapture disk, memory, execution, and device state from a running sandbox.
Trait Implementations§
Source§impl Clone for SnapshotSpec
impl Clone for SnapshotSpec
Source§fn clone(&self) -> SnapshotSpec
fn clone(&self) -> SnapshotSpec
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more