pub struct SnapshotInfo {
pub created_at: String,
pub vmstate_size_bytes: u64,
pub mem_size_bytes: u64,
pub boot_args: String,
pub vcpus: u8,
pub mem_mib: u32,
}Expand description
Metadata about a template’s pre-built Firecracker snapshot.
Created by template build --snapshot after booting the VM and
waiting for the service to become healthy. Used by run --template
to restore the VM instantly instead of cold-booting.
Fields§
§created_at: String§vmstate_size_bytes: u64§mem_size_bytes: u64§boot_args: StringBoot args used when the snapshot was created (must match on restore).
vcpus: u8vCPU count at snapshot time (must match on restore).
mem_mib: u32Memory MiB at snapshot time (must match on restore).
Trait Implementations§
Source§impl Clone for SnapshotInfo
impl Clone for SnapshotInfo
Source§fn clone(&self) -> SnapshotInfo
fn clone(&self) -> SnapshotInfo
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 SnapshotInfo
impl Debug for SnapshotInfo
Source§impl<'de> Deserialize<'de> for SnapshotInfo
impl<'de> Deserialize<'de> for SnapshotInfo
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 PartialEq for SnapshotInfo
impl PartialEq for SnapshotInfo
Source§impl Serialize for SnapshotInfo
impl Serialize for SnapshotInfo
impl Eq for SnapshotInfo
impl StructuralPartialEq for SnapshotInfo
Auto Trait Implementations§
impl Freeze for SnapshotInfo
impl RefUnwindSafe for SnapshotInfo
impl Send for SnapshotInfo
impl Sync for SnapshotInfo
impl Unpin for SnapshotInfo
impl UnsafeUnpin for SnapshotInfo
impl UnwindSafe for SnapshotInfo
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.