pub trait Terminate: Send + Sync
{
fn begin_termination(&self);
#[inline(always)]
fn begin_termination_due_to_panic(&self, panic_info: &PanicInfo)
{
self.begin_termination_due_to_irrecoverable_error(panic_info.payload(), panic_info.location())
}
fn begin_termination_due_to_irrecoverable_error(&self, irrecoverable_error: &(dyn Any + Send), location: Option<&Location>);
fn should_finish(&self) -> bool;
fn should_continue(&self) -> bool
{
!self.should_finish()
}
fn terminated_due_to_panic_or_irrecoverable_error(&self) -> bool;
}