Struct kernel::sync::RevocableGuard
source · [−]pub struct RevocableGuard<'a, F: LockFactory, T, I: LockInfo> where
F::LockedType<Inner<T>>: Lock<I, Inner = Inner<T>>, { /* private fields */ }
Expand description
A guard that allows access to a revocable object and keeps it alive.
Implementations
sourceimpl<F: LockFactory, T, I: LockInfo<Writable = True>> RevocableGuard<'_, F, T, I> where
F::LockedType<Inner<T>>: Lock<I, Inner = Inner<T>>,
impl<F: LockFactory, T, I: LockInfo<Writable = True>> RevocableGuard<'_, F, T, I> where
F::LockedType<Inner<T>>: Lock<I, Inner = Inner<T>>,
Trait Implementations
sourceimpl<F: LockFactory, T, I: LockInfo> Deref for RevocableGuard<'_, F, T, I> where
F::LockedType<Inner<T>>: Lock<I, Inner = Inner<T>>,
impl<F: LockFactory, T, I: LockInfo> Deref for RevocableGuard<'_, F, T, I> where
F::LockedType<Inner<T>>: Lock<I, Inner = Inner<T>>,
sourceimpl<F: LockFactory, T, I: LockInfo<Writable = True>> DerefMut for RevocableGuard<'_, F, T, I> where
F::LockedType<Inner<T>>: Lock<I, Inner = Inner<T>>,
impl<F: LockFactory, T, I: LockInfo<Writable = True>> DerefMut for RevocableGuard<'_, F, T, I> where
F::LockedType<Inner<T>>: Lock<I, Inner = Inner<T>>,
Auto Trait Implementations
impl<'a, F, T, I> RefUnwindSafe for RevocableGuard<'a, F, T, I> where
<<F as LockFactory>::LockedType<Inner<T>> as Lock<I>>::GuardContext: RefUnwindSafe,
<F as LockFactory>::LockedType<Inner<T>>: RefUnwindSafe,
impl<'a, F, T, I> Send for RevocableGuard<'a, F, T, I> where
<<F as LockFactory>::LockedType<Inner<T>> as Lock<I>>::GuardContext: Send,
<F as LockFactory>::LockedType<Inner<T>>: Sync,
impl<'a, F, T, I> Sync for RevocableGuard<'a, F, T, I> where
T: Sync,
impl<'a, F, T, I> Unpin for RevocableGuard<'a, F, T, I> where
<<F as LockFactory>::LockedType<Inner<T>> as Lock<I>>::GuardContext: Unpin,
impl<'a, F, T, I> UnwindSafe for RevocableGuard<'a, F, T, I> where
<<F as LockFactory>::LockedType<Inner<T>> as Lock<I>>::GuardContext: UnwindSafe,
<F as LockFactory>::LockedType<Inner<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