Enum adaptive_barrier::PanicMode[][src]

pub enum PanicMode {
    Decrement,
    Poison,
}

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

Variants

Decrement

Nothing special.

Just decrement the number of expected threads, just like during any normal destruction.

Poison

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
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.