[src]

Struct sync::MutexGuard

pub struct MutexGuard<'a, T> {
    cond: Condvar<'a>,
    // some fields omitted
}

An guard which is created by locking a mutex. Through this guard the underlying data can be accessed.

Fields

cond

Inner condition variable connected to the locked mutex that this guard was created from. This can be used for atomic-unlock-and-deschedule.

Trait Implementations

impl<'a, T> Deref<T> for MutexGuard<'a, T>

fn deref<'a>(&'a self) -> &'a T

impl<'a, T> DerefMut<T> for MutexGuard<'a, T>

fn deref_mut<'a>(&'a mut self) -> &'a mut T