Struct kernel::revocable::AsyncRevocableGuard
source · [−]pub struct AsyncRevocableGuard<'a, T> { /* private fields */ }
Expand description
A guard that allows access to a revocable object and keeps it alive.
Invariants
The owner owns an increment on the usage count (which may have saturated it), which keeps the revocable object alive.
Trait Implementations
sourceimpl<T> Deref for AsyncRevocableGuard<'_, T>
impl<T> Deref for AsyncRevocableGuard<'_, T>
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for AsyncRevocableGuard<'a, T>
impl<'a, T> Send for AsyncRevocableGuard<'a, T>where
T: Send + Sync,
impl<'a, T> Sync for AsyncRevocableGuard<'a, T>where
T: Send + Sync,
impl<'a, T> Unpin for AsyncRevocableGuard<'a, T>
impl<'a, T> !UnwindSafe for AsyncRevocableGuard<'a, T>
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