pub enum VCpuState {
Invalid = 0,
Created = 1,
Free = 2,
Ready = 3,
Running = 4,
Blocked = 5,
}Expand description
Represents the current execution state of a virtual CPU.
The VCpu follows a strict state machine: Created → Free → Ready → Running
Invalid state is used when errors occur during state transitions.
Variants§
Invalid = 0
Invalid state - indicates an error occurred during state transition
Created = 1
Initial state after VCpu creation, not yet initialized
Free = 2
VCpu is initialized and ready to be bound to a physical CPU
Ready = 3
VCpu is bound to a physical CPU and ready for execution
Running = 4
VCpu is currently executing on a physical CPU
Blocked = 5
VCpu execution is blocked (waiting for I/O, etc.)
Trait Implementations§
impl Copy for VCpuState
impl Eq for VCpuState
impl StructuralPartialEq for VCpuState
Auto Trait Implementations§
impl Freeze for VCpuState
impl RefUnwindSafe for VCpuState
impl Send for VCpuState
impl Sync for VCpuState
impl Unpin for VCpuState
impl UnsafeUnpin for VCpuState
impl UnwindSafe for VCpuState
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