pub struct Promise(pub(crate) Arc<(Condvar, Mutex<bool>)>);Expand description
Promise allows one thread to signal a waitable that another thread can wait on.
Tuple Fields§
§0: Arc<(Condvar, Mutex<bool>)>Implementations§
Auto Trait Implementations§
impl Freeze for Promise
impl RefUnwindSafe for Promise
impl Send for Promise
impl Sync for Promise
impl Unpin for Promise
impl UnwindSafe for Promise
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