Struct rutabaga_gfx::rutabaga_os::sys::linux::memory_mapping::MemoryMapping
source · pub struct MemoryMapping {
pub addr: NonNull<c_void>,
pub size: usize,
}
Expand description
Wraps an anonymous shared memory mapping in the current process. Provides RAII semantics including munmap when no longer needed.
Fields§
§addr: NonNull<c_void>
§size: usize
Implementations§
source§impl MemoryMapping
impl MemoryMapping
pub fn from_safe_descriptor( descriptor: OwnedDescriptor, size: usize, map_info: u32 ) -> RutabagaResult<MemoryMapping>
Trait Implementations§
source§impl Debug for MemoryMapping
impl Debug for MemoryMapping
Auto Trait Implementations§
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