pub enum BarrierError<K, Route> {
UnknownParticipant {
participant: K,
reply_to: Route,
},
DuplicateArrival {
participant: K,
generation: BarrierGeneration,
reply_to: Route,
},
StaleGeneration {
participant: K,
observed: BarrierGeneration,
current: BarrierGeneration,
reply_to: Route,
},
FutureGeneration {
participant: K,
observed: BarrierGeneration,
current: BarrierGeneration,
reply_to: Route,
},
Exhausted {
participant: K,
generation: BarrierGeneration,
reply_to: Route,
},
}Expand description
Rejected barrier arrival.
Variants§
UnknownParticipant
The participant is not in fixed membership.
DuplicateArrival
The participant already arrived in this generation.
Fields
participant: KDuplicate participant key.
generation: BarrierGenerationCurrent barrier generation.
reply_to: RouteExact release recipient from the rejected arrival.
StaleGeneration
Arrival belongs to a generation already released.
Fields
participant: KParticipant whose arrival was rejected.
observed: BarrierGenerationGeneration carried by the arrival.
current: BarrierGenerationCurrent accepted generation.
reply_to: RouteExact release recipient from the rejected arrival.
FutureGeneration
Arrival attempts to skip the current generation.
Fields
participant: KParticipant whose arrival was rejected.
observed: BarrierGenerationGeneration carried by the arrival.
current: BarrierGenerationCurrent accepted generation.
reply_to: RouteExact release recipient from the rejected arrival.
Exhausted
No representable successor generation remains.
Fields
participant: KParticipant whose arrival was rejected.
generation: BarrierGenerationFinal released generation.
reply_to: RouteExact release recipient from the rejected arrival.
Trait Implementations§
Source§impl<K: Clone, Route: Clone> Clone for BarrierError<K, Route>
impl<K: Clone, Route: Clone> Clone for BarrierError<K, Route>
Source§fn clone(&self) -> BarrierError<K, Route>
fn clone(&self) -> BarrierError<K, Route>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more