pub struct LockedBox<T>(/* private fields */);Expand description
A [Box]-like type that uses mlock to prevent paging the allocated memory
to disk.
Note: This type allocates in multiples of the operating system’s page size. This could lead to more memory usage than expected if many instances of this type are used.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for LockedBox<T>where T: RefUnwindSafe,
impl<T> !Send for LockedBox<T>
impl<T> !Sync for LockedBox<T>
impl<T> Unpin for LockedBox<T>
impl<T> UnwindSafe for LockedBox<T>where T: RefUnwindSafe,
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