pub struct WarmArtifact {
pub snapshot_id: String,
pub vcpus: u32,
pub memory_mib: u64,
}Expand description
A pre-warmed boot-to-ready snapshot plus the geometry it requires.
A memory snapshot restores only onto identical vcpus/memory, so geometry is part of the artifact — create gates template-restore on an exact match and cold-boots otherwise.
Fields§
§snapshot_id: StringSnapshot id in the snapshot catalog (carries TEMPLATE_LABEL).
vcpus: u32§memory_mib: u64Trait Implementations§
Source§impl Clone for WarmArtifact
impl Clone for WarmArtifact
Source§fn clone(&self) -> WarmArtifact
fn clone(&self) -> WarmArtifact
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 WarmArtifact
impl Debug for WarmArtifact
Source§impl<'de> Deserialize<'de> for WarmArtifact
impl<'de> Deserialize<'de> for WarmArtifact
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WarmArtifact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WarmArtifact, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WarmArtifact
Source§impl PartialEq for WarmArtifact
impl PartialEq for WarmArtifact
Source§impl Serialize for WarmArtifact
impl Serialize for WarmArtifact
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for WarmArtifact
Auto Trait Implementations§
impl Freeze for WarmArtifact
impl RefUnwindSafe for WarmArtifact
impl Send for WarmArtifact
impl Sync for WarmArtifact
impl Unpin for WarmArtifact
impl UnsafeUnpin for WarmArtifact
impl UnwindSafe for WarmArtifact
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.