Struct qutex::WriteGuard [−][src]
pub struct WriteGuard<T> { /* fields omitted */ }
Allows read or write access to the data contained within a lock.
Methods
impl<T> WriteGuard<T>
[src]
impl<T> WriteGuard<T>
pub fn downgrade(guard: WriteGuard<T>) -> ReadGuard<T>
[src]
pub fn downgrade(guard: WriteGuard<T>) -> ReadGuard<T>
Converts this WriteGuard
into a ReadGuard
and fulfills any other
pending read requests.
pub fn release(guard: WriteGuard<T>) -> QrwLock<T>
[src]
pub fn release(guard: WriteGuard<T>) -> QrwLock<T>
Releases the lock held by this WriteGuard
and returns the original
QrwLock
.
Trait Implementations
impl<T: Debug> Debug for WriteGuard<T>
[src]
impl<T: Debug> Debug for WriteGuard<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 WriteGuard<T>
[src]
impl<T> Deref for WriteGuard<T>
type Target = T
The resulting type after dereferencing.
fn deref(&self) -> &T
[src]
fn deref(&self) -> &T
Dereferences the value.
impl<T> DerefMut for WriteGuard<T>
[src]
impl<T> DerefMut for WriteGuard<T>
impl<T> Drop for WriteGuard<T>
[src]
impl<T> Drop for WriteGuard<T>
Auto Trait Implementations
impl<T> Send for WriteGuard<T> where
T: Send,
impl<T> Send for WriteGuard<T> where
T: Send,
impl<T> Sync for WriteGuard<T> where
T: Send,
impl<T> Sync for WriteGuard<T> where
T: Send,