Struct MutexGuard
pub struct MutexGuard<'a, T> { /* private fields */ }
Available on crate feature
threading
only.Expand description
Grants access to the Mutex
inner data.
Dropping the MutexGuard
will unlock the Mutex
;
Trait Implementations§
§impl<T> Deref for MutexGuard<'_, T>
impl<T> Deref for MutexGuard<'_, T>
§impl<T> DerefMut for MutexGuard<'_, T>
impl<T> DerefMut for MutexGuard<'_, T>
§fn deref_mut(&mut self) -> &mut <MutexGuard<'_, T> as Deref>::Target
fn deref_mut(&mut self) -> &mut <MutexGuard<'_, T> as Deref>::Target
Mutably dereferences the value.
§impl<T> Drop for MutexGuard<'_, T>
impl<T> Drop for MutexGuard<'_, T>
impl<T> !Send for MutexGuard<'_, T>
impl<T> Sync for MutexGuard<'_, T>where
T: Sync,
Auto Trait Implementations§
impl<'a, T> Freeze for MutexGuard<'a, T>
impl<'a, T> !RefUnwindSafe for MutexGuard<'a, T>
impl<'a, T> Unpin for MutexGuard<'a, T>
impl<'a, T> !UnwindSafe for MutexGuard<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
§impl<'b, T> Peripheral for T
impl<'b, T> Peripheral for T
§unsafe fn clone_unchecked(&self) -> <T as Peripheral>::P
unsafe fn clone_unchecked(&self) -> <T as Peripheral>::P
Unsafely clone (duplicate) a peripheral singleton. Read more