pub enum BarrierState<K, Route> {
Gathering {
generation: BarrierGeneration,
arrivals: Vec<BarrierArrival<K, Route>>,
},
Exhausted {
generation: BarrierGeneration,
},
}Expand description
Complete semantic state of a cyclic Barrier.
Variants§
Gathering
The current generation is accepting its fixed membership once each.
Fields
§
generation: BarrierGenerationExact accepted generation.
§
arrivals: Vec<BarrierArrival<K, Route>>Accepted arrivals in arrival order.
Exhausted
The final representable generation released; no later generation exists.
Fields
§
generation: BarrierGenerationFinal released generation.
Auto Trait Implementations§
impl<K, Route> Freeze for BarrierState<K, Route>
impl<K, Route> RefUnwindSafe for BarrierState<K, Route>where
K: RefUnwindSafe,
Route: RefUnwindSafe,
impl<K, Route> Send for BarrierState<K, Route>
impl<K, Route> Sync for BarrierState<K, Route>
impl<K, Route> Unpin for BarrierState<K, Route>
impl<K, Route> UnsafeUnpin for BarrierState<K, Route>
impl<K, Route> UnwindSafe for BarrierState<K, Route>where
K: UnwindSafe,
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