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]
pub fn downgrade(guard: WriteGuard<T>) -> ReadGuard<T>
[src]
Converts this WriteGuard
into a ReadGuard
and fulfills any other
pending read requests.
pub fn release(guard: WriteGuard<T>) -> QrwLock<T>
[src]
Releases the lock held by this WriteGuard
and returns the original
QrwLock
.
Trait Implementations
impl<T: Debug> Debug for WriteGuard<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> Deref for WriteGuard<T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.