pub enum PanicSwitch {
Kill,
Respawn,
}Expand description
Configures what the ThreadPool is supposed to do in case of a ‘panicking job’, that is, a job which panics while running in a thread.
Variants§
Kill
Configure the pool to finish parallely running jobs and then kill the whole process in case of a panicked job.
Respawn
Configure the pool to ignore panicked jobs and just respawn the polluted threads.
Auto Trait Implementations§
impl Freeze for PanicSwitch
impl RefUnwindSafe for PanicSwitch
impl Send for PanicSwitch
impl Sync for PanicSwitch
impl Unpin for PanicSwitch
impl UnwindSafe for PanicSwitch
Blanket Implementations§
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