pub struct RamBlock { /* private fields */ }Expand description
mmap-backed host memory allocation.
Owns a contiguous region of anonymous memory obtained via
mmap(MAP_PRIVATE | MAP_ANONYMOUS). Freed on drop.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RamBlock
impl RefUnwindSafe for RamBlock
impl Unpin for RamBlock
impl UnsafeUnpin for RamBlock
impl UnwindSafe for RamBlock
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