pub struct SharedMemAllocatorDropGuard(/* private fields */);
Expand description
The intended singleton destructor for the global singleton shared memory allocator.
Because the global allocator has static lifetime, drop() will never be called on it. Therefore, necessary cleanup routines are not called. Instead, this object can be instantiated once, eg at the start of main(), and then when it is dropped at program exit the cleanup routine is called.
Implementations§
Trait Implementations§
Auto Trait Implementations§
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