Struct SimpleTerminate

Source
pub struct SimpleTerminate<PPEL: ParsedPanicErrorLogger> { /* private fields */ }
Expand description

A simple terminate that does no logging of errors.

Implementations§

Source§

impl<PPEL: ParsedPanicErrorLogger> SimpleTerminate<PPEL>

Source

pub fn new(error_logger: PPEL) -> Arc<Self>

New instance.

Trait Implementations§

Source§

impl<PPEL: Debug + ParsedPanicErrorLogger> Debug for SimpleTerminate<PPEL>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<PPEL: ParsedPanicErrorLogger> Terminate for SimpleTerminate<PPEL>

Source§

fn begin_termination(&self)

Begin termination.

Source§

fn begin_termination_due_to_irrecoverable_error( &self, panic_payload: &(dyn Any + Send), location: Option<&Location<'_>>, )

Begin termination (due to an irrecoverable error). Read more
Source§

fn should_finish(&self) -> bool

Should finish.
Source§

fn terminated_due_to_panic_or_irrecoverable_error(&self) -> bool

Check after termination.
Source§

fn begin_termination_due_to_panic(&self, panic_info: &PanicInfo<'_>)

Begin termination (due to a panic). Read more
Source§

fn should_continue(&self) -> bool

Should continue (opposite of should_finish()).

Auto Trait Implementations§

§

impl<PPEL> !Freeze for SimpleTerminate<PPEL>

§

impl<PPEL> RefUnwindSafe for SimpleTerminate<PPEL>
where PPEL: RefUnwindSafe,

§

impl<PPEL> Send for SimpleTerminate<PPEL>

§

impl<PPEL> Sync for SimpleTerminate<PPEL>

§

impl<PPEL> Unpin for SimpleTerminate<PPEL>
where PPEL: Unpin,

§

impl<PPEL> UnwindSafe for SimpleTerminate<PPEL>
where PPEL: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.