pub enum WireVmState {
NotStarted,
Running,
Paused,
}Expand description
The wire-shape vocabulary served by GET / — exactly the upstream three values.
Serializes to the literal upstream strings ("Not started", "Running", "Paused")
— note the space + lowercase s in "Not started". SDKs and firectl sniff these
strings; squib emits them verbatim.
WireVmState lives here (not in squib-api) so the LifecyclePhase::wire_state
collapse function can be defined alongside its target without squib-core taking a
dependency on the API crate.
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".
Trait Implementations§
Source§impl Clone for WireVmState
impl Clone for WireVmState
Source§fn clone(&self) -> WireVmState
fn clone(&self) -> WireVmState
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 WireVmState
impl Debug for WireVmState
Source§impl Default for WireVmState
impl Default for WireVmState
Source§fn default() -> WireVmState
fn default() -> WireVmState
Returns the “default value” for a type. Read more
Source§impl Display for WireVmState
impl Display for WireVmState
Source§impl PartialEq for WireVmState
impl PartialEq for WireVmState
Source§fn eq(&self, other: &WireVmState) -> bool
fn eq(&self, other: &WireVmState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WireVmState
impl Eq for WireVmState
impl StructuralPartialEq for WireVmState
Auto Trait Implementations§
impl Freeze for WireVmState
impl RefUnwindSafe for WireVmState
impl Send for WireVmState
impl Sync for WireVmState
impl Unpin for WireVmState
impl UnsafeUnpin for WireVmState
impl UnwindSafe for WireVmState
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