pub struct Condvar(/* private fields */);Implementations§
Source§impl Condvar
impl Condvar
pub fn new() -> Self
pub fn notify_all(&self)
pub fn notify_one(&self)
pub fn wait_sync<'a, T>(&self, guard: MutexGuard<'a, T>) -> MutexGuard<'a, T>
pub fn wait_sync_timeout<'a, T>( &self, guard: MutexGuard<'a, T>, deadline: Instant, ) -> MutexGuard<'a, T>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Condvar
impl RefUnwindSafe for Condvar
impl Send for Condvar
impl Sync for Condvar
impl Unpin for Condvar
impl UnsafeUnpin for Condvar
impl UnwindSafe for Condvar
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