#[repr(align(4096))]pub struct HostMemory { /* private fields */ }
Implementations§
Source§impl HostMemory
impl HostMemory
pub fn new() -> Self
pub fn mem_area_strat(align: u32) -> BoxedStrategy<MemArea>
Sourcepub fn invert(regions: &MemAreas) -> MemAreas
pub fn invert(regions: &MemAreas) -> MemAreas
Takes a sorted list or memareas, and gives a sorted list of memareas covering the parts of memory not covered by the previous
pub fn byte_slice_strat(size: u32, exclude: &MemAreas) -> BoxedStrategy<MemArea>
Trait Implementations§
Source§impl GuestMemory for HostMemory
impl GuestMemory for HostMemory
Source§fn base(&self) -> (*mut u8, u32)
fn base(&self) -> (*mut u8, u32)
Returns the base allocation of this guest memory, located in host
memory. Read more
Auto Trait Implementations§
impl !Freeze for HostMemory
impl !RefUnwindSafe for HostMemory
impl Send for HostMemory
impl !Sync for HostMemory
impl Unpin for HostMemory
impl UnwindSafe for HostMemory
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