Struct spin::MutexGuard[][src]

pub struct MutexGuard<'a, T: ?Sized + 'a> { /* fields omitted */ }

A guard to which the protected data can be accessed

When the guard falls out of scope it will release the lock.

Trait Implementations

impl<'a, T: ?Sized> Deref for MutexGuard<'a, T>

The resulting type after dereferencing.

Dereferences the value.

impl<'a, T: ?Sized> DerefMut for MutexGuard<'a, T>

Mutably dereferences the value.

impl<'a, T: ?Sized> Drop for MutexGuard<'a, T>

The dropping of the MutexGuard will release the lock it was created from.

Auto Trait Implementations

impl<'a, T: ?Sized> Send for MutexGuard<'a, T> where
    T: Send

impl<'a, T: ?Sized> Sync for MutexGuard<'a, T> where
    T: Sync