Struct qutex::WriteGuard
source · pub struct WriteGuard<T> { /* private fields */ }
Expand description
Allows read or write access to the data contained within a lock.
Implementations§
source§impl<T> WriteGuard<T>
impl<T> WriteGuard<T>
sourcepub fn downgrade(guard: WriteGuard<T>) -> ReadGuard<T>
pub fn downgrade(guard: WriteGuard<T>) -> ReadGuard<T>
Converts this WriteGuard
into a ReadGuard
and fulfills any other
pending read requests.
sourcepub fn release(guard: WriteGuard<T>) -> QrwLock<T>
pub fn release(guard: WriteGuard<T>) -> QrwLock<T>
Releases the lock held by this WriteGuard
and returns the original
QrwLock
.
Trait Implementations§
source§impl<T: Debug> Debug for WriteGuard<T>
impl<T: Debug> Debug for WriteGuard<T>
source§impl<T> Deref for WriteGuard<T>
impl<T> Deref for WriteGuard<T>
source§impl<T> DerefMut for WriteGuard<T>
impl<T> DerefMut for WriteGuard<T>
Auto Trait Implementations§
impl<T> Freeze for WriteGuard<T>
impl<T> !RefUnwindSafe for WriteGuard<T>
impl<T> Send for WriteGuard<T>where
T: Send,
impl<T> Sync for WriteGuard<T>where
T: Send,
impl<T> Unpin for WriteGuard<T>
impl<T> !UnwindSafe for WriteGuard<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