Struct kernel::revocable::RevocableGuard
source · [−]pub struct RevocableGuard<'a, T> { /* private fields */ }
Expand description
A guard that allows access to a revocable object and keeps it alive.
CPUs may not sleep while holding on to RevocableGuard
because it’s in atomic context
holding the RCU read-side lock.
Invariants
The RCU read-side lock is held while the guard is alive.
Trait Implementations
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for RevocableGuard<'a, T> where
T: RefUnwindSafe,
impl<'a, T> !Send for RevocableGuard<'a, T>
impl<'a, T> !Sync for RevocableGuard<'a, T>
impl<'a, T> Unpin for RevocableGuard<'a, T>
impl<'a, T> UnwindSafe for RevocableGuard<'a, T> where
T: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more