pub struct StackKey {
pub stack_name: String,
pub version: String,
pub vcpu_count: u8,
pub mem_size_mib: u32,
}Expand description
Identifier for a pool entry’s bucket. Same (stack_name, version, vcpu_count, mem_size_mib) share a pool; different identities have
separate pools so handoff doesn’t mismatch.
The four-tuple matches what a downstream blueprint can guarantee about a pre-restored VM:
stack_name+versionpin the rootfs / sidecar image,vcpu_count+mem_size_mibpin the machine config baked into the snapshot (Firecracker rejects restores into a differently-shaped VM).
All four must match for a warm entry to be valid for the caller’s request.
Fields§
§stack_name: StringLogical stack identifier (e.g. "node20", "python311-pytorch").
version: StringVersion of the stack (e.g. sidecar version, rootfs revision).
vcpu_count: u8vCPU count the snapshot was taken with — must match the restore target.
mem_size_mib: u32Memory size (MiB) the snapshot was taken with — must match on restore.
Trait Implementations§
impl Eq for StackKey
impl StructuralPartialEq for StackKey
Auto Trait Implementations§
impl Freeze for StackKey
impl RefUnwindSafe for StackKey
impl Send for StackKey
impl Sync for StackKey
impl Unpin for StackKey
impl UnsafeUnpin for StackKey
impl UnwindSafe for StackKey
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