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.

This structure is created by the try_lock method on Mutex.

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]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl<'a, T> DerefMut for MutexGuard<'a, T>
[src]

[src]

Mutably dereferences the value.

impl<'a, T> Drop for MutexGuard<'a, T>
[src]

[src]

Executes the destructor for this type. Read more