pub enum PoolSlot {
Available {
snapshot_path: PathBuf,
mem_file_path: PathBuf,
vm_id: String,
},
InUse {
cell_id: String,
},
Empty,
}Expand description
State of one slot in the warm pool.
Variants§
Available
Slot has a snapshot on disk and is ready to be checked out.
Fields
§
snapshot_path: PathBufFilesystem path to the Firecracker VM state file written by
PUT /snapshot/create. PUT /snapshot/load consumes this as
snapshot_path at restore time.
InUse
Slot has been handed to an active cell — not eligible for checkout.
Fields
Empty
Slot has no snapshot yet (initial state, or post-checkin awaiting
background re-fill).
Trait Implementations§
impl Eq for PoolSlot
impl StructuralPartialEq for PoolSlot
Auto Trait Implementations§
impl Freeze for PoolSlot
impl RefUnwindSafe for PoolSlot
impl Send for PoolSlot
impl Sync for PoolSlot
impl Unpin for PoolSlot
impl UnsafeUnpin for PoolSlot
impl UnwindSafe for PoolSlot
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