pub struct Guard<'a> { /* private fields */ }Expand description
A guard that keeps the local epoch pinned.
Implementations§
Source§impl Guard<'_>
impl Guard<'_>
Sourcepub fn global(&self) -> &GlobalHandle
pub fn global(&self) -> &GlobalHandle
Returns a handle to the global epoch.
Sourcepub fn try_advance_global(&self) -> bool
pub fn try_advance_global(&self) -> bool
Tries to advance the global epoch. Returns true if the epoch was successfully advanced.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Guard<'a>
impl<'a> !RefUnwindSafe for Guard<'a>
impl<'a> !Send for Guard<'a>
impl<'a> !Sync for Guard<'a>
impl<'a> Unpin for Guard<'a>
impl<'a> !UnwindSafe for Guard<'a>
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