pub struct MonitorGuard<'a, T: 'a> { /* private fields */ }
Implementations§
Source§impl<'a, T: 'a> MonitorGuard<'a, T>
impl<'a, T: 'a> MonitorGuard<'a, T>
pub fn new(cvar: &'a Condvar, guard: MutexGuard<'a, T>) -> MonitorGuard<'a, T>
pub fn wait(&mut self)
pub fn wait_timeout(&mut self, t: Duration) -> WaitTimeoutResult
pub fn notify_one(&self)
pub fn notify_all(&self)
Trait Implementations§
Source§impl<'a, T> Deref for MonitorGuard<'a, T>
impl<'a, T> Deref for MonitorGuard<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for MonitorGuard<'a, T>
impl<'a, T> RefUnwindSafe for MonitorGuard<'a, T>
impl<'a, T> !Send for MonitorGuard<'a, T>
impl<'a, T> Sync for MonitorGuard<'a, T>where
T: Sync,
impl<'a, T> Unpin for MonitorGuard<'a, T>
impl<'a, T> UnwindSafe for MonitorGuard<'a, T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more