Struct shared_mutex::monitor::MonitorWriteGuard
[−]
[src]
pub struct MonitorWriteGuard<'mutex, T: ?Sized + 'mutex> { // some fields omitted }
An exclusive write guard to the data in a Monitor.
Methods
impl<'mutex, T: ?Sized> MonitorWriteGuard<'mutex, T>[src]
fn wait_for_read(self) -> LockResult<MonitorReadGuard<'mutex, T>>
Wait for a notification on the monitor, then resume with another read guard.
fn wait_for_write(self) -> LockResult<Self>
Wait for a notification on the monitor, then resume with another write guard.
fn notify_one(&self)
Notify a thread waiting on the monitor.
fn notify_all(&self)
Notify all threads waiting on the monitor.
Methods from Deref<Target=SharedMutexWriteGuard<'mutex, T>>
fn into_mapped(self) -> MappedSharedMutexWriteGuard<'mutex, T>
Turn this guard into a guard which can be mapped to a sub-borrow.
Note that a mapped guard cannot wait on a Condvar.
fn wait_for_write(self, cond: &Condvar) -> LockResult<Self>
Wait on the given condition variable, and resume with another write lock.
fn wait_for_read(self, cond: &Condvar) -> LockResult<SharedMutexReadGuard<'mutex, T>>
Wait on the given condition variable, and resume with a read lock.
Trait Implementations
impl<'mutex, T: ?Sized> Deref for MonitorWriteGuard<'mutex, T>[src]
type Target = SharedMutexWriteGuard<'mutex, T>
The resulting type after dereferencing
fn deref(&self) -> &Self::Target
The method called to dereference a value
impl<'mutex, T: ?Sized> DerefMut for MonitorWriteGuard<'mutex, T>[src]
fn deref_mut(&mut self) -> &mut Self::Target
The method called to mutably dereference a value
impl<'mutex, T: ?Sized> Into<SharedMutexWriteGuard<'mutex, T>> for MonitorWriteGuard<'mutex, T>[src]
fn into(self) -> SharedMutexWriteGuard<'mutex, T>
Performs the conversion.