#[repr(C)]pub struct VCPU {
pub context: Context,
pub state: State,
pub pcpu: Option<usize>,
/* private fields */
}
Fields§
§context: Context
§state: State
§pcpu: Option<usize>
Implementations§
source§impl VCPU
impl VCPU
pub fn new() -> Arc<Mutex<Self>>
pub fn into_current(&mut self)
pub fn from_current(&mut self)
pub fn is_realm_dead(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VCPU
impl Send for VCPU
impl Sync for VCPU
impl Unpin for VCPU
impl !UnwindSafe for VCPU
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