pub struct SnapshotDescription {Show 13 fields
pub state_path: PathBuf,
pub magic: u64,
pub version: Version,
pub expected_version: Version,
pub vcpu_count: usize,
pub mem_size_mib: u64,
pub track_dirty_pages: bool,
pub devices: Vec<(String, String, u32)>,
pub mmds_present: bool,
pub inferred_memory_path: Option<PathBuf>,
pub inferred_memory_exists: bool,
pub inferred_memory_size: Option<u64>,
pub crc_ok: bool,
}Expand description
What --describe-snapshot prints. Captures the same fields a Firecracker user
would expect:
- file path
- magic + version
- vCPU count
- mem_size_mib
- dirty-page tracking flag
- whether the matching memory file looks present
Fields§
§state_path: PathBufPath to the state file.
magic: u64Magic value embedded in the file.
version: VersionVersion embedded in the file.
expected_version: VersionSquib’s expected version (for the cross-version note).
vcpu_count: usizeNumber of vCPUs the snapshot saved.
mem_size_mib: u64Configured guest RAM size in MiB.
track_dirty_pages: boolWhether dirty-page tracking was enabled at save time.
devices: Vec<(String, String, u32)>Per-device summary: (class, id, mmio_slot).
mmds_present: boolWhether MMDS state is present.
inferred_memory_path: Option<PathBuf>Best-effort memory-file path inferred by swapping .snap→.mem.
inferred_memory_exists: boolWhether that inferred memory file exists.
inferred_memory_size: Option<u64>Inferred memory file’s size in bytes (if present).
crc_ok: boolCRC verified on load.
Implementations§
Trait Implementations§
Source§impl Clone for SnapshotDescription
impl Clone for SnapshotDescription
Source§fn clone(&self) -> SnapshotDescription
fn clone(&self) -> SnapshotDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SnapshotDescription
impl RefUnwindSafe for SnapshotDescription
impl Send for SnapshotDescription
impl Sync for SnapshotDescription
impl Unpin for SnapshotDescription
impl UnsafeUnpin for SnapshotDescription
impl UnwindSafe for SnapshotDescription
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more