Enum adaptive_barrier::PanicMode [−][src]
What to do if a Barrier
is destroyed during a panic.
Variants
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]
fn eq(&self, other: &PanicMode) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralEq for PanicMode
[src]
impl StructuralPartialEq for PanicMode
[src]
Auto Trait Implementations
impl RefUnwindSafe for PanicMode
[src]
impl Send for PanicMode
[src]
impl Sync for PanicMode
[src]
impl Unpin for PanicMode
[src]
impl UnwindSafe for PanicMode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,