pub struct CrashHandler;
Expand description

A Linux/Android signal handler

Implementations

Attaches the signal handler.

The provided callback will be invoked if a signal is caught, providing a crate::CrashContext with the details of the thread where the signal was raised.

The callback runs in a compromised context, so it is highly recommended to not perform actions that may fail due to corrupted state that caused or is a symptom of the original signal. This includes doing heap allocations from the same allocator as the crashing code.

Detaches the handler.

This is done automatically when this CrashHandler is dropped.

Sends the specified user signal.

Trait Implementations

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.