pub struct SnapshotRef {
pub vm_id: String,
pub snapshot_id: String,
pub resume_immediately: bool,
pub network_overrides: Vec<NetworkInterface>,
}Expand description
Reference to a snapshot used to restore a VM.
Fields§
§vm_id: StringVM the snapshot was taken from.
snapshot_id: StringSnapshot name.
resume_immediately: boolIf true, transition straight to Running after restore (Firecracker’s resume_vm flag).
If false, the VM is restored in Paused state and needs an explicit start_vm.
network_overrides: Vec<NetworkInterface>If non-empty, replace the snapshot’s recorded network interfaces with these on load. Use this for warm-pool handoff: a pre-restored VM swaps its TAP/MAC to a new tenant without a full re-boot. Firecracker 1.10+ required; earlier versions reject the field.
Trait Implementations§
Source§impl Clone for SnapshotRef
impl Clone for SnapshotRef
Source§fn clone(&self) -> SnapshotRef
fn clone(&self) -> SnapshotRef
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 moreAuto Trait Implementations§
impl Freeze for SnapshotRef
impl RefUnwindSafe for SnapshotRef
impl Send for SnapshotRef
impl Sync for SnapshotRef
impl Unpin for SnapshotRef
impl UnsafeUnpin for SnapshotRef
impl UnwindSafe for SnapshotRef
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