Struct readlock::SharedWriteGuard
source · pub struct SharedWriteGuard<'a, T: ?Sized>(/* private fields */);
Expand description
RAII structure used to release the exclusive write access of a lock when dropped.
Implementations§
sourcepub fn from_inner(guard: RwLockWriteGuard<'a, T>) -> Self
pub fn from_inner(guard: RwLockWriteGuard<'a, T>) -> Self
Create a SharedWriteGuard
from its internal representation,
RwLockWriteGuard<'a, T>
.
Trait Implementations§
Auto Trait Implementations§
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