Struct shared_mutex::MappedSharedMutexWriteGuard [] [src]

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

A write guard to a sub-borrow of an original SharedMutexWriteGuard.

Unlike SharedMutexWriteGuard, it cannot be used to wait on a Condvar.

Methods

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

Transform this guard into a sub-borrow of the original data.

Conditionally transform this guard into a sub-borrow of the original data.

Conditionally transform this guard into a sub-borrow of the original data.

If the transformation operation is aborted, returns the original guard.

Recover the original guard for waiting.

Takes the original mutex to recover the original type and data. If the passed mutex is not the same object as the original mutex, returns Err.

Trait Implementations

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

The resulting type after dereferencing

The method called to dereference a value

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

The method called to mutably dereference a value

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

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

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

Formats the value using the given formatter.