Struct qutex::Guard
[−]
[src]
pub struct Guard<T> { /* fields omitted */ }
Allows access to the data contained within a lock just like a mutex guard.
Methods
impl<T> Guard<T>
[src]
fn unlock(guard: Guard<T>) -> Qutex<T>
Releases the lock held by a Guard
and returns the original Qutex
.
Trait Implementations
impl<T: Debug> Debug for Guard<T>
[src]
impl<T> Deref for Guard<T>
[src]
type Target = T
The resulting type after dereferencing
fn deref(&self) -> &T
The method called to dereference a value
impl<T> DerefMut for Guard<T>
[src]
fn deref_mut(&mut self) -> &mut T
The method called to mutably dereference a value