pub struct MemoryView<'a> {
pub memory: &'a GuestMemory,
}Expand description
Restricts instruction fetches to the MMU execute-permission checks.
The lifetime 'a prevents this view from living longer than the borrowed guest memory.
The view does not copy memory, so the JIT and the lifter use the same mapped bytes.
Fields§
§memory: &'a GuestMemoryBorrows the MMU so instruction fetches enforce execute permission.
Auto Trait Implementations§
impl<'a> !Send for MemoryView<'a>
impl<'a> !Sync for MemoryView<'a>
impl<'a> Freeze for MemoryView<'a>
impl<'a> RefUnwindSafe for MemoryView<'a>
impl<'a> Unpin for MemoryView<'a>
impl<'a> UnsafeUnpin for MemoryView<'a>
impl<'a> UnwindSafe for MemoryView<'a>
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