#[repr(C)]pub struct GuestPageAbi {
pub guest_base: u64,
pub perms: u8,
pub _padding: [u8; 7],
pub data: *mut u8,
}Expand description
Keeps the host and generated-code page layout identical across the C ABI.
Fields§
§guest_base: u64Gives the aligned guest address of the first byte in this page.
perms: u8Gives the compact PagePerms bits checked by generated code.
_padding: [u8; 7]Keeps data at the offset that the generated ABI expects.
data: *mut u8Points to the first host byte of this guest page.
Trait Implementations§
Source§impl Clone for GuestPageAbi
impl Clone for GuestPageAbi
Source§fn clone(&self) -> GuestPageAbi
fn clone(&self) -> GuestPageAbi
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 GuestPageAbi
Auto Trait Implementations§
impl !Send for GuestPageAbi
impl !Sync for GuestPageAbi
impl Freeze for GuestPageAbi
impl RefUnwindSafe for GuestPageAbi
impl Unpin for GuestPageAbi
impl UnsafeUnpin for GuestPageAbi
impl UnwindSafe for GuestPageAbi
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