pub struct Guard { /* private fields */ }Expand description
An epoch guard that keeps the current thread pinned.
While a guard exists, any memory retired during this epoch will not be reclaimed. Guards should be short-lived to avoid delaying reclamation.
Obtain a guard via LearnedMap::guard or use LearnedMap::pin for
the convenience MapRef wrapper.
Auto Trait Implementations§
impl Freeze for Guard
impl !RefUnwindSafe for Guard
impl !Send for Guard
impl !Sync for Guard
impl Unpin for Guard
impl UnsafeUnpin for Guard
impl !UnwindSafe for Guard
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