pub struct VcpuSnapshot {
pub id: u64,
pub apic_id: u32,
pub hardware_ready: bool,
pub executing: bool,
pub in_guest: bool,
pub runs: u64,
pub pending_nmi: bool,
}Expand description
Diagnostic snapshot of one logical vCPU.
Fields§
§id: u64Opaque vCPU identifier.
apic_id: u32Guest APIC identifier.
hardware_ready: booltrue when a hardware context has been created (at least one RUN).
executing: booltrue while a RUN request is pending or executing.
in_guest: booltrue while the vCPU task is inside guest execution (VM entry/exits).
runs: u64Number of RUNs completed by this vCPU task.
pending_nmi: booltrue when an NMI is pending delivery.
Trait Implementations§
Source§impl Clone for VcpuSnapshot
impl Clone for VcpuSnapshot
impl Copy for VcpuSnapshot
Source§impl Debug for VcpuSnapshot
impl Debug for VcpuSnapshot
impl Eq for VcpuSnapshot
Source§impl PartialEq for VcpuSnapshot
impl PartialEq for VcpuSnapshot
impl StructuralPartialEq for VcpuSnapshot
Auto Trait Implementations§
impl Forget for VcpuSnapshot
impl Freeze for VcpuSnapshot
impl Move for VcpuSnapshot
impl RefUnwindSafe for VcpuSnapshot
impl Send for VcpuSnapshot
impl Sync for VcpuSnapshot
impl Unpin for VcpuSnapshot
impl UnsafeUnpin for VcpuSnapshot
impl UnwindSafe for VcpuSnapshot
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more