#[repr(i32)]pub enum RunState {
Unknown = 0,
Running = 1,
RestoreVm = 2,
Paused = 3,
SaveVm = 4,
Shutdown = 5,
Terminate = 7,
Reset = 9,
InternalError = 10,
Restart = 11,
Start = 12,
Stop = 13,
}Variants§
Unknown = 0
Purely observable state. The virtual machine is in an unmapped or transient state. Cannot be set directly.
Running = 1
Active execution state. Setting this state resumes the virtual machine.
RestoreVm = 2
Purely observable state. The virtual machine is paused while restoring its state (e.g., loading a snapshot). Cannot be set directly.
Paused = 3
Suspended execution state. Setting this state pauses the virtual machine and halts CPU cycles.
SaveVm = 4
Purely observable state. The virtual machine is paused while saving its state (e.g., taking a snapshot). Cannot be set directly.
Shutdown = 5
Graceful shutdown state. Setting this state initiates a clean shutdown of the virtual machine.
Terminate = 7
Write-only command. Immediately terminates the emulator process without cleanup. Can cause data corruption and must be used with caution.
Reset = 9
Write-only command. Triggers a warm reset of the virtual machine.
InternalError = 10
Purely observable state. The virtual machine has stopped execution due to a guest panic, internal error, or I/O failure. Cannot be set directly.
Restart = 11
Write-only command. Triggers a warm reset of the virtual machine (equivalent to RESET).
Start = 12
Write-only command. Starts or resumes execution of the virtual machine (equivalent
to RUNNING).
Stop = 13
Write-only command. Stops execution of the virtual machine (equivalent to PAUSED).
Implementations§
Source§impl RunState
impl RunState
Sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
impl Copy for RunState
impl Eq for RunState
Source§impl Ord for RunState
impl Ord for RunState
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for RunState
impl PartialOrd for RunState
impl StructuralPartialEq for RunState
Auto Trait Implementations§
impl Freeze for RunState
impl RefUnwindSafe for RunState
impl Send for RunState
impl Sync for RunState
impl Unpin for RunState
impl UnsafeUnpin for RunState
impl UnwindSafe for RunState
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request