Struct priomutex::MutexGuard [] [src]

pub struct MutexGuard<'a, T: 'a>(_, _);

An RAII guard. Frees the mutex when dropped.

It can be dereferenced to access the data protected by the mutex.

Trait Implementations

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

[src]

Release the lock.

If any threads are ready to take the mutex (ie. are currently blocked calling lock), then the one with the highest priority will receive it; if not, the mutex will just be freed.

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.

Auto Trait Implementations

impl<'a, T> !Send for MutexGuard<'a, T>

impl<'a, T> Sync for MutexGuard<'a, T> where
    T: Send + Sync