pub struct OwnedMemoryRegion { /* private fields */ }Expand description
An owned memory region.
The buffer is owned by this struct and deregistered + freed on drop.
Implementations§
Source§impl OwnedMemoryRegion
impl OwnedMemoryRegion
Sourcepub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
pub fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Mutably access the registered buffer.
Trait Implementations§
Source§impl Drop for OwnedMemoryRegion
impl Drop for OwnedMemoryRegion
impl Send for OwnedMemoryRegion
impl Sync for OwnedMemoryRegion
Auto Trait Implementations§
impl Freeze for OwnedMemoryRegion
impl RefUnwindSafe for OwnedMemoryRegion
impl Unpin for OwnedMemoryRegion
impl UnsafeUnpin for OwnedMemoryRegion
impl UnwindSafe for OwnedMemoryRegion
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