Struct std::sync::rwlock::RwLockWriteGuard
1.0.0 · source · pub struct RwLockWriteGuard<'a, T: ?Sized + 'a> {
lock: &'a RwLock<T>,
poison: Guard,
}
Expand description
Fields§
§lock: &'a RwLock<T>
§poison: Guard
Implementations§
source§impl<'rwlock, T: ?Sized> RwLockWriteGuard<'rwlock, T>
impl<'rwlock, T: ?Sized> RwLockWriteGuard<'rwlock, T>
sourceunsafe fn new(
lock: &'rwlock RwLock<T>
) -> LockResult<RwLockWriteGuard<'rwlock, T>>
unsafe fn new( lock: &'rwlock RwLock<T> ) -> LockResult<RwLockWriteGuard<'rwlock, T>>
Create a new instance of RwLockWriteGuard<T>
from a RwLock<T>
.
Trait Implementations§
1.16.0 · source§impl<T: Debug> Debug for RwLockWriteGuard<'_, T>
impl<T: Debug> Debug for RwLockWriteGuard<'_, T>
source§impl<T: ?Sized> Deref for RwLockWriteGuard<'_, T>
impl<T: ?Sized> Deref for RwLockWriteGuard<'_, T>
source§impl<T: ?Sized> DerefMut for RwLockWriteGuard<'_, T>
impl<T: ?Sized> DerefMut for RwLockWriteGuard<'_, T>
source§impl<T: ?Sized> Drop for RwLockWriteGuard<'_, T>
impl<T: ?Sized> Drop for RwLockWriteGuard<'_, T>
impl<T: ?Sized> !Send for RwLockWriteGuard<'_, T>
impl<T: ?Sized + Sync> Sync for RwLockWriteGuard<'_, T>
Auto Trait Implementations§
impl<'a, T: ?Sized> RefUnwindSafe for RwLockWriteGuard<'a, T>
impl<'a, T: ?Sized> Unpin for RwLockWriteGuard<'a, T>
impl<'a, T: ?Sized> UnwindSafe for RwLockWriteGuard<'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