#[non_exhaustive]pub struct SnapshotLoadConfig {
pub snapshot_path: SafePath,
pub mem_backend: MemBackend,
pub track_dirty_pages: bool,
pub resume_vm: bool,
pub clock_realtime: Option<u64>,
pub network_overrides: Vec<Value>,
pub vsock_override: Option<Value>,
}Expand description
Validated /snapshot/load PUT body.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.snapshot_path: SafePathValidated state-file path.
mem_backend: MemBackendValidated memory backend (or back-compat mem_file_path).
track_dirty_pages: boolWhether to track dirty pages after restore.
resume_vm: boolWhether to resume vCPUs immediately after restore.
clock_realtime: Option<u64>clock_realtime — recorded but ignored (warning emitted).
network_overrides: Vec<Value>Per-NIC overrides (passthrough).
vsock_override: Option<Value>Vsock override (passthrough).
Trait Implementations§
Source§impl Clone for SnapshotLoadConfig
impl Clone for SnapshotLoadConfig
Source§fn clone(&self) -> SnapshotLoadConfig
fn clone(&self) -> SnapshotLoadConfig
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 moreSource§impl Debug for SnapshotLoadConfig
impl Debug for SnapshotLoadConfig
Source§impl Serialize for SnapshotLoadConfig
impl Serialize for SnapshotLoadConfig
Auto Trait Implementations§
impl Freeze for SnapshotLoadConfig
impl RefUnwindSafe for SnapshotLoadConfig
impl Send for SnapshotLoadConfig
impl Sync for SnapshotLoadConfig
impl Unpin for SnapshotLoadConfig
impl UnsafeUnpin for SnapshotLoadConfig
impl UnwindSafe for SnapshotLoadConfig
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