Struct drone_core::sync::MutexGuard
[−]
[src]
#[must_use]pub struct MutexGuard<'a, T: 'a> { /* fields omitted */ }
An RAII implementation of a "scoped lock" of a 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
and DerefMut
implementations.
Trait Implementations
impl<'a, T> !Send for MutexGuard<'a, T>
[src]
impl<'a, T: Sync> Sync for MutexGuard<'a, T>
[src]
impl<'a, T> Deref for MutexGuard<'a, T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.