Struct shared_mutex::SharedMutexReadGuard [] [src]

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

A shared read guard on a SharedMutex.

Methods

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

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

Note that a mapped guard cannot wait on a Condvar.

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

See the documentation for std::sync::Condvar::wait for more information.

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

See the documentation for std::sync::Condvar::wait for more information.

Trait Implementations

impl<'mutex, T: ?Sized + Send> Send for SharedMutexReadGuard<'mutex, T>
[src]

impl<'mutex, T: ?Sized + Sync> Sync for SharedMutexReadGuard<'mutex, T>
[src]

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

The resulting type after dereferencing

The method called to dereference a value

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

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

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

Formats the value using the given formatter.