#[repr(u32)]pub enum StateValue {
Runnable = 0,
Uninitialized = 1,
InitReceived = 2,
StateHalted = 3,
SipiReceived = 4,
Stopped = 5,
CheckStop = 6,
Operating = 7,
Load = 8,
}
Variants§
Runnable = 0
The vCPU is currently running. Only supported on x86, ARM, and arm64.
Uninitialized = 1
The vCPU is an application processor which has not yet received an INIT signal. Only supported on x86.
InitReceived = 2
The vCPU has received an INIT signal, and is now ready for a SIPI. Only supoprted on x86.
StateHalted = 3
The vCPU has executed a HLT instruction and is waiting for an interrupt. Only supported on x86.
SipiReceived = 4
The vCPU has just received a SIPI. Only supported on x86.
Stopped = 5
The vCPU is stopped. Only supported on s390, ARM, and arm64.
CheckStop = 6
The vCPU is in a special error state. Only supported on s390.
Operating = 7
The vCPU is operating (running or halted). Only supported on s390.
Load = 8
The vCPU is in a special load/startup state. Only supported on s390.
Trait Implementations§
Source§impl Clone for StateValue
impl Clone for StateValue
Source§fn clone(&self) -> StateValue
fn clone(&self) -> StateValue
Returns a copy of the value. Read more
1.0.0 · 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 StateValue
impl Debug for StateValue
Source§impl PartialEq for StateValue
impl PartialEq for StateValue
impl Copy for StateValue
impl Eq for StateValue
impl StructuralPartialEq for StateValue
Auto Trait Implementations§
impl Freeze for StateValue
impl RefUnwindSafe for StateValue
impl Send for StateValue
impl Sync for StateValue
impl Unpin for StateValue
impl UnwindSafe for StateValue
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