pub trait Condvar {
    type Mutex<T>: Mutex<Data = T>
    where
        T: Send
; fn new() -> Self;
fn wait<'a, T>(
        &self,
        guard: <<Self as Condvar>::Mutex<T> as Mutex>::Guard<'a>
    ) -> <<Self as Condvar>::Mutex<T> as Mutex>::Guard<'a>
    where
        T: Send
;
fn wait_timeout<'a, T>(
        &self,
        guard: <<Self as Condvar>::Mutex<T> as Mutex>::Guard<'a>,
        duration: Duration
    ) -> (<<Self as Condvar>::Mutex<T> as Mutex>::Guard<'a>, bool)
    where
        T: Send
;
fn notify_one(&self);
fn notify_all(&self); }
Expand description

A “std-like” Condvar trait for no_std environments. Note that it uses Rust GATs, which requires nightly, but the hope is that GATs will be stabilized soon.

Associated Types

Required methods

Implementations on Foreign Types

Implementors