Struct qutex::WriteGuard
[−]
[src]
pub struct WriteGuard<T> { /* fields omitted */ }
Allows read or write access to the data contained within a lock.
Methods
impl<T> WriteGuard<T>
[src]
fn downgrade(guard: WriteGuard<T>) -> ReadGuard<T>
Converts this WriteGuard
into a ReadGuard
and fulfills any other
pending read requests.
fn release(guard: WriteGuard<T>) -> QrwLock<T>
Releases the lock held by this WriteGuard
and returns the original
QrwLock
.
Trait Implementations
impl<T: Debug> Debug for WriteGuard<T>
[src]
impl<T> Deref for WriteGuard<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T> DerefMut for WriteGuard<T>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value