pub struct RwSpinLockWriteGuard<'a, T: ?Sized> {
lock: &'a RwSpinLock,
value: NonNull<T>,
marker: PhantomData<&'a mut T>,
}Expand description
A guard that releases a write lock when dropped.
Fields§
§lock: &'a RwSpinLock§value: NonNull<T>§marker: PhantomData<&'a mut T>Trait Implementations§
Source§impl<T: ?Sized> Deref for RwSpinLockWriteGuard<'_, T>
impl<T: ?Sized> Deref for RwSpinLockWriteGuard<'_, T>
Source§impl<T: ?Sized> DerefMut for RwSpinLockWriteGuard<'_, T>
impl<T: ?Sized> DerefMut for RwSpinLockWriteGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> Freeze for RwSpinLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> RefUnwindSafe for RwSpinLockWriteGuard<'a, T>where
T: RefUnwindSafe + ?Sized,
impl<'a, T> !Send for RwSpinLockWriteGuard<'a, T>
impl<'a, T> !Sync for RwSpinLockWriteGuard<'a, T>
impl<'a, T> Unpin for RwSpinLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for RwSpinLockWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> !UnwindSafe for RwSpinLockWriteGuard<'a, T>
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