Enum iroh_blobs::util::local_pool::PanicMode
source · pub enum PanicMode {
LogAndContinue,
Shutdown,
}
Expand description
What to do when a panic occurs in a pool thread
Variants§
LogAndContinue
Log the panic and continue
The panic will be re-thrown when the pool is dropped.
Shutdown
Log the panic and immediately shut down the pool.
The panic will be re-thrown when the pool is dropped.
Trait Implementations§
source§impl PartialEq for PanicMode
impl PartialEq for PanicMode
impl Copy for PanicMode
impl Eq for PanicMode
impl StructuralPartialEq for PanicMode
Auto Trait Implementations§
impl Freeze for PanicMode
impl RefUnwindSafe for PanicMode
impl Send for PanicMode
impl Sync for PanicMode
impl Unpin for PanicMode
impl UnwindSafe for PanicMode
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more