Enum adaptive_barrier::PanicMode[][src]

pub enum PanicMode {

What to do if a Barrier is destroyed during a panic.



Nothing special.

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).

Trait Implementations

impl Clone for PanicMode[src]

impl Copy for PanicMode[src]

impl Debug for PanicMode[src]

impl Eq for PanicMode[src]

impl PartialEq<PanicMode> for PanicMode[src]

impl StructuralEq for PanicMode[src]

impl StructuralPartialEq for PanicMode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.