Trait rutabaga_gfx::RutabagaMappedRegion
pub unsafe trait RutabagaMappedRegion: Send + Sync {
// Required methods
fn as_ptr(&self) -> *mut u8;
fn size(&self) -> usize;
fn as_mesa_mapping(&self) -> MesaMapping;
}
Expand description
§Safety
Caller must ensure that MappedRegion’s lifetime contains the lifetime of pointer returned.
Required Methods§
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.
fn as_mesa_mapping(&self) -> MesaMapping
fn as_mesa_mapping(&self) -> MesaMapping
Returns mesa mapping representation of the region