struct Latch {
left: Mutex<usize>,
done: Condvar,
}Expand description
Counts unfinished jobs; Latch::wait returns when there are none.
Fields§
§left: Mutex<usize>§done: CondvarImplementations§
Auto Trait Implementations§
impl !Freeze for Latch
impl RefUnwindSafe for Latch
impl Send for Latch
impl Sync for Latch
impl Unpin for Latch
impl UnsafeUnpin for Latch
impl UnwindSafe for Latch
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