Struct std::sync::RWLockWriteGuard[src]

pub struct RWLockWriteGuard<'a, T> {
    pub cond: Condvar<'a>,
    // some fields omitted
}

A guard which is created by locking an rwlock in write mode. Through this guard the underlying data can be accessed.

Fields

cond

Methods

impl<'a, T: Send + Share> RWLockWriteGuard<'a, T>

fn downgrade<'a, T: Send + Share>(self) -> RWLockReadGuard<'a, T>

Consumes this write lock token, returning a new read lock token.

This will allow pending readers to come into the lock.

Trait Implementations

impl<'a, T: Send + Share> Deref<T> for RWLockWriteGuard<'a, T>

fn deref<'a, T: Send + Share>(&'a self) -> &'a T

impl<'a, T: Send + Share> DerefMut<T> for RWLockWriteGuard<'a, T>

fn deref_mut<'a, T: Send + Share>(&'a mut self) -> &'a mut T