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]
pub fn unlock(guard: Guard<T>) -> Qutex<T>
[src]
Releases the lock held by a Guard
and returns the original Qutex
.
Trait Implementations
impl<T: Debug> Debug for Guard<T>
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl<T> Deref for Guard<T>
[src]
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
Dereferences the value.