pub enum LifecyclePhase {
Uninitialized,
NotStarted,
Starting,
Running,
Paused,
Shutdown,
}Expand description
Internal lifecycle phase — six values. Never serialized to the wire.
Variants§
Uninitialized
No configuration posted yet.
NotStarted
Configuration posted, awaiting PUT /actions {InstanceStart}.
Starting
Boot orchestration in progress (vCPUs spawning, GIC live, devices wired).
Running
At least one vCPU is active.
Paused
Microvm booted but vCPUs are paused.
Shutdown
Terminal state after PSCI SYSTEM_OFF / SYSTEM_RESET or fatal vCPU panic.
Implementations§
Source§impl LifecyclePhase
impl LifecyclePhase
Sourcepub const fn wire_state(self) -> WireVmState
pub const fn wire_state(self) -> WireVmState
Collapse to the upstream three-value vocabulary served by GET /.
Uninitialized | NotStarted | Starting | Shutdown all map to
WireVmState::NotStarted — clients see only the upstream three values.
Sourcepub const fn is_post_boot(self) -> bool
pub const fn is_post_boot(self) -> bool
true once the microvm has booted (Running or Paused).
Sourcepub const fn is_pre_boot(self) -> bool
pub const fn is_pre_boot(self) -> bool
true while the VMM is still accepting pre-boot configuration mutations.
Trait Implementations§
Source§impl Clone for LifecyclePhase
impl Clone for LifecyclePhase
Source§fn clone(&self) -> LifecyclePhase
fn clone(&self) -> LifecyclePhase
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 LifecyclePhase
impl Debug for LifecyclePhase
Source§impl Default for LifecyclePhase
impl Default for LifecyclePhase
Source§fn default() -> LifecyclePhase
fn default() -> LifecyclePhase
Returns the “default value” for a type. Read more
Source§impl Hash for LifecyclePhase
impl Hash for LifecyclePhase
Source§impl PartialEq for LifecyclePhase
impl PartialEq for LifecyclePhase
Source§fn eq(&self, other: &LifecyclePhase) -> bool
fn eq(&self, other: &LifecyclePhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LifecyclePhase
impl Eq for LifecyclePhase
impl StructuralPartialEq for LifecyclePhase
Auto Trait Implementations§
impl Freeze for LifecyclePhase
impl RefUnwindSafe for LifecyclePhase
impl Send for LifecyclePhase
impl Sync for LifecyclePhase
impl Unpin for LifecyclePhase
impl UnsafeUnpin for LifecyclePhase
impl UnwindSafe for LifecyclePhase
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