pub struct SaveRequest<'a, R: PageReader> {
pub state_path: &'a Path,
pub memory_path: &'a Path,
pub kind: SnapshotKind,
pub state: MicrovmState,
pub memory: &'a R,
pub ram_size: u64,
pub memory_page_size: u64,
pub dirty: Option<&'a DirtyBitmap>,
}Expand description
Inputs to a save operation.
Fields§
§state_path: &'a PathDestination path for the state file (<id>.snap).
memory_path: &'a PathDestination path for the memory file (<id>.mem).
kind: SnapshotKindSnapshot type.
state: MicrovmStateState blob (vCPUs, GIC, devices, MMDS).
memory: &'a RSource for memory bytes.
ram_size: u64Logical RAM size.
memory_page_size: u64Memory-file page size (host page; 16 KiB on Apple Silicon).
dirty: Option<&'a DirtyBitmap>Dirty bitmap — required for Diff, ignored for Full.
Trait Implementations§
Auto Trait Implementations§
impl<'a, R> Freeze for SaveRequest<'a, R>
impl<'a, R> RefUnwindSafe for SaveRequest<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for SaveRequest<'a, R>where
R: Sync,
impl<'a, R> Sync for SaveRequest<'a, R>where
R: Sync,
impl<'a, R> Unpin for SaveRequest<'a, R>
impl<'a, R> UnsafeUnpin for SaveRequest<'a, R>
impl<'a, R> UnwindSafe for SaveRequest<'a, R>where
R: RefUnwindSafe,
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