What to do if a
Barrier is destroyed during a panic.
Just decrement the number of expected threads, just like during any normal destruction.
Poison the barrier.
All calls to
wait, including the ones that are already in progress, will
panic too. Once poisoned, there's no way to "unpoison" the barrier.
This is useful in case a failure in one thread makes the whole group unusable (very often in tests).
impl StructuralEq for PanicMode[src]
impl StructuralPartialEq for PanicMode[src]
impl RefUnwindSafe for PanicMode[src]
impl UnwindSafe for PanicMode[src]
type Owned = T
The resulting type after obtaining ownership.
pub fn clone_into(&self, target: &mut T)[src]
type Error = Infallible
The type returned in the event of a conversion error.