pub type MappedReentrantMutexGuard<'a, T> = MappedReentrantMutexGuard<'a, RawMutex, RawThreadId, T>;
Expand description

An RAII mutex guard returned by ReentrantMutexGuard::map, which can point to a subfield of the protected data.

The main difference between MappedReentrantMutexGuard and ReentrantMutexGuard is that the former doesn’t support temporarily unlocking and re-locking, since that could introduce soundness issues if the locked object is modified by another thread.

Aliased Type§

struct MappedReentrantMutexGuard<'a, T> { /* private fields */ }

Trait Implementations§

source§

impl<'a, R, G, T> Deref for MappedReentrantMutexGuard<'a, R, G, T>where R: RawMutex + 'a, G: GetThreadId + 'a, T: 'a + ?Sized,

§

type Target = T

The resulting type after dereferencing.
source§

fn deref(&self) -> &T

Dereferences the value.