pub struct SnapshotResources {
pub after_ms: Option<u64>,
pub at_heartbeat: Option<u64>,
pub on_listener: bool,
pub on_pre_exec: bool,
pub quiesce_ms: u64,
pub out_path: Option<String>,
}Fields§
§after_ms: Option<u64>§at_heartbeat: Option<u64>§on_listener: bool§on_pre_exec: boolTrigger snapshot on the per-VM
[crate::devices::serial::SerialState::pre_exec_ready] atomic —
init-oci has just printed “workload-pre-exec” and is in a 100 ms
nanosleep, giving us a stable WFI window to capture in. Used
by the always-pipelined-skip-warm .build() path: snapshots
guest BEFORE the workload runs, so each restore re-execs
the workload fresh. Saves 50-150 ms vs on_listener.
Mutually exclusive with on_listener in practice — when both
are set, pre-exec wins (it fires earlier in the boot timeline).
quiesce_ms: u64§out_path: Option<String>Trait Implementations§
Source§impl Clone for SnapshotResources
impl Clone for SnapshotResources
Source§fn clone(&self) -> SnapshotResources
fn clone(&self) -> SnapshotResources
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 SnapshotResources
impl Debug for SnapshotResources
Source§impl Default for SnapshotResources
impl Default for SnapshotResources
Source§fn default() -> SnapshotResources
fn default() -> SnapshotResources
Returns the “default value” for a type. Read more
impl Eq for SnapshotResources
Source§impl PartialEq for SnapshotResources
impl PartialEq for SnapshotResources
Source§fn eq(&self, other: &SnapshotResources) -> bool
fn eq(&self, other: &SnapshotResources) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SnapshotResources
Auto Trait Implementations§
impl Freeze for SnapshotResources
impl RefUnwindSafe for SnapshotResources
impl Send for SnapshotResources
impl Sync for SnapshotResources
impl Unpin for SnapshotResources
impl UnsafeUnpin for SnapshotResources
impl UnwindSafe for SnapshotResources
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