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>>,
sourcepub fn as_pinned_mut(&mut self) -> Pin<&mut T>
pub fn as_pinned_mut(&mut self) -> Pin<&mut T>
Returns a pinned mutable reference to the wrapped object.
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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