Struct mesa3d_util::MemoryMapping
source · pub struct MemoryMapping {
mapping: MemoryMapping,
}
Fields§
§mapping: MemoryMapping
Implementations§
source§impl MemoryMapping
impl MemoryMapping
pub fn from_safe_descriptor( descriptor: OwnedDescriptor, size: usize, map_info: u32, ) -> MesaResult<MemoryMapping>
pub fn from_offset( descriptor: &OwnedDescriptor, offset: usize, size: usize, ) -> MesaResult<MemoryMapping>
pub fn as_mesa_mapping(&self) -> MesaMapping
Trait Implementations§
source§impl MappedRegion for MemoryMapping
impl MappedRegion for MemoryMapping
source§fn as_ptr(&self) -> *mut u8
fn as_ptr(&self) -> *mut u8
Returns a pointer to the beginning of the memory region. Should only be
used for passing this region to ioctls for setting guest memory.
source§fn as_mesa_mapping(&self) -> MesaMapping
fn as_mesa_mapping(&self) -> MesaMapping
Returns mesa mapping representation of the region
Auto Trait Implementations§
impl Freeze for MemoryMapping
impl RefUnwindSafe for MemoryMapping
impl Send for MemoryMapping
impl Sync for MemoryMapping
impl Unpin for MemoryMapping
impl UnwindSafe for MemoryMapping
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