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

An RAII implementation of a “scoped lock” of a reentrant mutex. When this structure is dropped (falls out of scope), the lock will be unlocked.

The data protected by the mutex can be accessed through this guard via its Deref implementation.

Aliased Type§

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

Trait Implementations§

source§

impl<'a, R, G, T> Deref for ReentrantMutexGuard<'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.