pub enum VmVcpuState {
Invalid = 0,
Created = 1,
Free = 2,
Ready = 3,
Running = 4,
Blocked = 5,
}Expand description
Execution state of an AxVM-owned vCPU wrapper.
Variants§
Invalid = 0
Invalid state.
Created = 1
Initial state after vCPU creation.
Free = 2
vCPU is initialized and free.
Ready = 3
vCPU is bound and ready to run.
Running = 4
vCPU is currently running.
Blocked = 5
vCPU is blocked.
Trait Implementations§
Source§impl Clone for VmVcpuState
impl Clone for VmVcpuState
Source§fn clone(&self) -> VmVcpuState
fn clone(&self) -> VmVcpuState
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 moreimpl Copy for VmVcpuState
Source§impl Debug for VmVcpuState
impl Debug for VmVcpuState
impl Eq for VmVcpuState
Source§impl PartialEq for VmVcpuState
impl PartialEq for VmVcpuState
Source§fn eq(&self, other: &VmVcpuState) -> bool
fn eq(&self, other: &VmVcpuState) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for VmVcpuState
Auto Trait Implementations§
impl Freeze for VmVcpuState
impl RefUnwindSafe for VmVcpuState
impl Send for VmVcpuState
impl Sync for VmVcpuState
impl Unpin for VmVcpuState
impl UnsafeUnpin for VmVcpuState
impl UnwindSafe for VmVcpuState
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