Struct drone_core::sync::MutexGuard [−][src]
#[must_use = "if unused the Mutex will immediately unlock"]pub struct MutexGuard<'a, T: ?Sized> { /* 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 lock
and try_lock
methods on
Mutex
.
Trait Implementations
impl<T: ?Sized + Debug> Debug for MutexGuard<'_, T>
[src]
impl<T: ?Sized + Debug> Debug for MutexGuard<'_, T>
[src]impl<T: ?Sized> Deref for MutexGuard<'_, T>
[src]
impl<T: ?Sized> Deref for MutexGuard<'_, T>
[src]impl<T: ?Sized + Display> Display for MutexGuard<'_, T>
[src]
impl<T: ?Sized + Display> Display for MutexGuard<'_, T>
[src]impl<T: ?Sized + Send> Send for MutexGuard<'_, T>
[src]
impl<T: ?Sized + Send> Send for MutexGuard<'_, T>
[src]impl<T: ?Sized + Sync> Sync for MutexGuard<'_, T>
[src]
impl<T: ?Sized + Sync> Sync for MutexGuard<'_, T>
[src]Auto Trait Implementations
impl<'a, T: ?Sized> Unpin for MutexGuard<'a, T>
impl<'a, T: ?Sized> Unpin for MutexGuard<'a, T>