Struct shared_mutex::SharedMutexWriteGuard [] [src]

pub struct SharedMutexWriteGuard<'mutex, T: ?Sized + 'mutex> {
    // some fields omitted
}

An exclusive write guard on a SharedMutex.

Methods

impl<'mutex, T: ?Sized> SharedMutexWriteGuard<'mutex, T>
[src]

fn into_mapped(self) -> MappedSharedMutexWriteGuard<'mutex, T>

Turn this guard into a guard which can be mapped to a sub-borrow.

Note that a mapped guard cannot wait on a Condvar.

fn wait_for_write(self, cond: &Condvar) -> LockResult<Self>

Wait on the given condition variable, and resume with another write lock.

fn wait_for_read(self, cond: &Condvar) -> LockResult<SharedMutexReadGuard<'mutex, T>>

Wait on the given condition variable, and resume with a read lock.

Trait Implementations

impl<'mutex, T: ?Sized> Deref for SharedMutexWriteGuard<'mutex, T>
[src]

type Target = T

The resulting type after dereferencing

fn deref(&self) -> &T

The method called to dereference a value

impl<'mutex, T: ?Sized> DerefMut for SharedMutexWriteGuard<'mutex, T>
[src]

fn deref_mut(&mut self) -> &mut T

The method called to mutably dereference a value

impl<'mutex, T: ?Sized> Drop for SharedMutexWriteGuard<'mutex, T>
[src]

fn drop(&mut self)

A method called when the value goes out of scope. Read more

impl<'mutex, T: ?Sized + Debug> Debug for SharedMutexWriteGuard<'mutex, T>
[src]

fn fmt(&self, f: &mut Formatter) -> Result

Formats the value using the given formatter.