pub struct RwLockMappedWriteGuard<'a, T: ?Sized> { /* private fields */ }Expand description
Exclusive access to a component of a RwLock’s value, made by
RwLockWriteGuard::map; releases on drop. The release makes the
progress RwLockReadGuard’s does.
Implementations§
Source§impl<'a, T: ?Sized> RwLockMappedWriteGuard<'a, T>
impl<'a, T: ?Sized> RwLockMappedWriteGuard<'a, T>
Sourcepub fn map<F, U>(this: Self, f: F) -> RwLockMappedWriteGuard<'a, U>
pub fn map<F, U>(this: Self, f: F) -> RwLockMappedWriteGuard<'a, U>
A guard for a component of the component. It cannot fail: this guard already holds the write.
An associated function, RwLockMappedWriteGuard::map(guard, f): a
method would shadow methods of the locked data.
Trait Implementations§
Source§impl<T: ?Sized> Deref for RwLockMappedWriteGuard<'_, T>
impl<T: ?Sized> Deref for RwLockMappedWriteGuard<'_, T>
Source§impl<T: ?Sized> DerefMut for RwLockMappedWriteGuard<'_, T>
impl<T: ?Sized> DerefMut for RwLockMappedWriteGuard<'_, T>
Source§impl<T: ?Sized> Drop for RwLockMappedWriteGuard<'_, T>
impl<T: ?Sized> Drop for RwLockMappedWriteGuard<'_, T>
impl<T: ?Sized + Send + Sync> Send for RwLockMappedWriteGuard<'_, T>
impl<T: ?Sized + Send + Sync> Sync for RwLockMappedWriteGuard<'_, T>
Auto Trait Implementations§
impl<'a, T> !RefUnwindSafe for RwLockMappedWriteGuard<'a, T>
impl<'a, T> !UnwindSafe for RwLockMappedWriteGuard<'a, T>
impl<'a, T> Freeze for RwLockMappedWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> Unpin for RwLockMappedWriteGuard<'a, T>where
T: ?Sized,
impl<'a, T> UnsafeUnpin for RwLockMappedWriteGuard<'a, T>where
T: ?Sized,
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