pub struct SnapshotLoadParams {
pub enable_diff_snapshots: Option<bool>,
pub mem_file_path: Option<PathBuf>,
pub mem_backend: Option<MemoryBackend>,
pub resume_vm: Option<bool>,
pub snapshot_path: PathBuf,
}
Expand description
Defines the configuration used for handling snapshot resume. Exactly one of
the two mem_*
fields must be present in the body of the request.
Fieldsยง
ยงenable_diff_snapshots: Option<bool>
Enable support for incremental (diff) snapshots by tracking dirty guest pages.
mem_file_path: Option<PathBuf>
Path to the file that contains the guest memory to be loaded.
It is only allowed if mem_backend
is not present. This parameter has
been deprecated and it will be removed in future Firecracker release.
Required: true
mem_backend: Option<MemoryBackend>
Configuration for the backend that handles memory load. If this field
resume_vm: Option<bool>
When set to true, the vm is also resumed if the snapshot load is successful.
snapshot_path: PathBuf
Path to the file that contains the microVM state to be loaded. Required: true
Trait Implementationsยง
Sourceยงimpl Clone for SnapshotLoadParams
impl Clone for SnapshotLoadParams
Sourceยงfn clone(&self) -> SnapshotLoadParams
fn clone(&self) -> SnapshotLoadParams
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 SnapshotLoadParams
impl Debug for SnapshotLoadParams
Sourceยงimpl<'de> Deserialize<'de> for SnapshotLoadParams
impl<'de> Deserialize<'de> for SnapshotLoadParams
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
Sourceยงimpl Hash for SnapshotLoadParams
impl Hash for SnapshotLoadParams
Sourceยงimpl Ord for SnapshotLoadParams
impl Ord for SnapshotLoadParams
Sourceยงfn cmp(&self, other: &SnapshotLoadParams) -> Ordering
fn cmp(&self, other: &SnapshotLoadParams) -> Ordering
1.21.0 ยท Sourceยงfn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Sourceยงimpl PartialEq for SnapshotLoadParams
impl PartialEq for SnapshotLoadParams
Sourceยงimpl PartialOrd for SnapshotLoadParams
impl PartialOrd for SnapshotLoadParams
Sourceยงimpl Serialize for SnapshotLoadParams
impl Serialize for SnapshotLoadParams
impl Eq for SnapshotLoadParams
impl StructuralPartialEq for SnapshotLoadParams
Auto Trait Implementationsยง
impl Freeze for SnapshotLoadParams
impl RefUnwindSafe for SnapshotLoadParams
impl Send for SnapshotLoadParams
impl Sync for SnapshotLoadParams
impl Unpin for SnapshotLoadParams
impl UnwindSafe for SnapshotLoadParams
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