pub enum LatchState<Route> {
Counting {
remaining: usize,
waiting: Vec<Route>,
},
Released,
}Expand description
Complete semantic state of a Latch.
Variants§
Counting
More arrivals are required; every listed participant is waiting.
Fields
Released
The threshold was reached and cannot be reset by this incarnation.
Auto Trait Implementations§
impl<Route> Freeze for LatchState<Route>
impl<Route> RefUnwindSafe for LatchState<Route>where
Route: RefUnwindSafe,
impl<Route> Send for LatchState<Route>where
Route: Send,
impl<Route> Sync for LatchState<Route>where
Route: Sync,
impl<Route> Unpin for LatchState<Route>where
Route: Unpin,
impl<Route> UnsafeUnpin for LatchState<Route>
impl<Route> UnwindSafe for LatchState<Route>where
Route: UnwindSafe,
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