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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.