Struct shared_mutex::MappedSharedMutexReadGuard [] [src]

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

A read guard to a sub-borrow of an original SharedMutexReadGuard.

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

Methods

impl<'mutex, T: ?Sized> MappedSharedMutexReadGuard<'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 MappedSharedMutexReadGuard<'mutex, T>
[src]

The resulting type after dereferencing

The method called to dereference a value

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

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

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

Formats the value using the given formatter.