Struct qutex::ReadGuard [−][src]
pub struct ReadGuard<T> { /* fields omitted */ }
Allows read-only access to the data contained within a lock.
Methods
impl<T> ReadGuard<T>
[src]
impl<T> ReadGuard<T>
pub fn upgrade(guard: ReadGuard<T>) -> FutureUpgrade<T>
[src]
pub fn upgrade(guard: ReadGuard<T>) -> FutureUpgrade<T>
pub fn release(guard: ReadGuard<T>) -> QrwLock<T>
[src]
pub fn release(guard: ReadGuard<T>) -> QrwLock<T>
Releases the lock held by this ReadGuard
and returns the original QrwLock
.
Trait Implementations
impl<T: Debug> Debug for ReadGuard<T>
[src]
impl<T: Debug> Debug for ReadGuard<T>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T> Deref for ReadGuard<T>
[src]
impl<T> Deref for ReadGuard<T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T> Drop for ReadGuard<T>
[src]
impl<T> Drop for ReadGuard<T>