pub enum VmState {
NotStarted,
Running,
Paused,
}Expand description
Wire-shape lifecycle state served by GET / and inside snapshot metadata.
Mirrors upstream vmm/src/vmm_config/instance_info.rs::VmState exactly: three
variants, with NotStarted serializing as the literal string "Not started" (note
the space + lowercase s). SDKs and firectl sniff these strings byte-for-byte;
any deviation breaks compatibility.
Variants§
NotStarted
VMM has started but no microvm is running. Wire string: "Not started".
Running
Microvm has booted and at least one vCPU is active. Wire string: "Running".
Paused
Microvm has booted but vCPUs are paused. Wire string: "Paused".
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VmState
impl<'de> Deserialize<'de> for VmState
Source§fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(de: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<WireVmState> for VmState
impl From<WireVmState> for VmState
Source§fn from(s: WireVmState) -> Self
fn from(s: WireVmState) -> Self
Converts to this type from the input type.
impl Copy for VmState
impl Eq for VmState
impl StructuralPartialEq for VmState
Auto Trait Implementations§
impl Freeze for VmState
impl RefUnwindSafe for VmState
impl Send for VmState
impl Sync for VmState
impl Unpin for VmState
impl UnsafeUnpin for VmState
impl UnwindSafe for VmState
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