Function panic_wrapper::panic_wrapper
source · pub fn panic_wrapper(panic_info: &PanicInfo<'_>) -> Result<(), &'static str>
Expand description
Performs the standard panic handling routine, which involves the following:
- Invoking the current
Task
’skill_handler
routine, if it has registered one. - Printing a backtrace of the call stack.
- Finally, it performs stack unwinding of this
Task'
s stack and kills it.
Returns Ok(())
if everything ran successfully, and Err
otherwise.