struct HostMemoryMapper<M: SharedMemoryMapper> {
shm_mapper: M,
allocator: AddressAllocator,
}Expand description
Provides the ability to map host memory into the guest physical address space. Used to
implement VirtioMediaHostMemoryMapper.
Fields§
§shm_mapper: MMapper.
allocator: AddressAllocatorAddress allocator for the mapper.
Trait Implementations§
Source§impl<M: SharedMemoryMapper> VirtioMediaHostMemoryMapper for HostMemoryMapper<M>
impl<M: SharedMemoryMapper> VirtioMediaHostMemoryMapper for HostMemoryMapper<M>
Auto Trait Implementations§
impl<M> Freeze for HostMemoryMapper<M>where
M: Freeze,
impl<M> RefUnwindSafe for HostMemoryMapper<M>where
M: RefUnwindSafe,
impl<M> Send for HostMemoryMapper<M>
impl<M> Sync for HostMemoryMapper<M>where
M: Sync,
impl<M> Unpin for HostMemoryMapper<M>where
M: Unpin,
impl<M> UnwindSafe for HostMemoryMapper<M>where
M: UnwindSafe,
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