pub struct SnapshotCreateParams {
pub mem_file_path: PathBuf,
pub snapshot_path: PathBuf,
pub snapshot_type: Option<SnapshotType>,
pub version: Option<String>,
}
Fields§
§mem_file_path: PathBuf
Path to the file that will contain the guest memory. Required: true
snapshot_path: PathBuf
Path to the file that will contain the microVM state. Required: true
snapshot_type: Option<SnapshotType>
Type of snapshot to create. It is optional and by default, a full snapshot is created. Enum: [Full Diff]
version: Option<String>
The microVM version for which we want to create the snapshot. It is optional and it defaults to the current version.
Trait Implementations§
Source§impl Clone for SnapshotCreateParams
impl Clone for SnapshotCreateParams
Source§fn clone(&self) -> SnapshotCreateParams
fn clone(&self) -> SnapshotCreateParams
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 SnapshotCreateParams
impl Debug for SnapshotCreateParams
Source§impl<'de> Deserialize<'de> for SnapshotCreateParams
impl<'de> Deserialize<'de> for SnapshotCreateParams
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 SnapshotCreateParams
impl RefUnwindSafe for SnapshotCreateParams
impl Send for SnapshotCreateParams
impl Sync for SnapshotCreateParams
impl Unpin for SnapshotCreateParams
impl UnwindSafe for SnapshotCreateParams
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