pub struct VmSnapshot {
pub version: u32,
pub arch: CpuArch,
pub vcpus: Vec<VcpuSnapshot>,
pub devices: Vec<DeviceSnapshot>,
pub memory_regions: Vec<MemoryRegionSnapshot>,
pub total_memory: u64,
pub compressed: bool,
pub compression: Option<String>,
pub parent_id: Option<String>,
}Expand description
Full VM snapshot metadata.
Fields§
§version: u32Snapshot format version.
arch: CpuArchCPU architecture.
vcpus: Vec<VcpuSnapshot>vCPU states.
devices: Vec<DeviceSnapshot>Device states.
memory_regions: Vec<MemoryRegionSnapshot>Memory region info.
total_memory: u64Total memory size.
compressed: boolWhether memory is compressed.
compression: Option<String>Compression algorithm (if compressed).
parent_id: Option<String>Parent snapshot ID (for incremental).
Trait Implementations§
Source§impl Clone for VmSnapshot
impl Clone for VmSnapshot
Source§fn clone(&self) -> VmSnapshot
fn clone(&self) -> VmSnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VmSnapshot
impl Debug for VmSnapshot
Source§impl<'de> Deserialize<'de> for VmSnapshot
impl<'de> Deserialize<'de> for VmSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VmSnapshot
impl RefUnwindSafe for VmSnapshot
impl Send for VmSnapshot
impl Sync for VmSnapshot
impl Unpin for VmSnapshot
impl UnsafeUnpin for VmSnapshot
impl UnwindSafe for VmSnapshot
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