pub struct Guard<'a> { /* private fields */ }Expand description
Guard for an active SRCU read-side critical section on a particular Srcu.
Leaking this guard with core::mem::forget leaves the SRCU read-side
critical section active and makes dropping the associated Srcu sleep forever.
§Invariants
idx is the index returned by srcu_read_lock() for srcu.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Guard<'a>
impl<'a> !Send for Guard<'a>
impl<'a> !Sync for Guard<'a>
impl<'a> !UnwindSafe for Guard<'a>
impl<'a> Freeze for Guard<'a>
impl<'a> Unpin for Guard<'a>
impl<'a> UnsafeUnpin 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