Trait Alias signal_handler::SignalHandler

source ·
trait SignalHandler = FnOnce(&SignalContext) -> Result<(), ()>;
Expand description

A signal handler is a callback function that will be invoked when a task’s execution causes an illegal error or exception.

Returning Ok indicates the signal was handled and that the task may continue exection. Returning Err indicates it was not handled and that the system should proceed to its default procedure of cleaning up that task.