Function catch_unwind::resume_unwind
source · pub fn resume_unwind(caught_panic_reason: KillReason) -> !Expand description
Resumes the unwinding procedure after it was caught with catch_unwind_with_arg().
This is analogous to the Rust’s std::panic::resume_unwind() in that it is
intended to be used to continue unwinding after a panic was caught.
The argument is a [KillReason] instead of a typical Rust panic “payload”
(which is usually Box<Any + Send>) for two reasons:
KillReasonis the type returned bycatch_unwind_with_arg()upon failure, so it makes sense to continue unwinding with that same error type.- It’s more flexible than the standard Rust panic info type because it must also represent the possibility of a non-panic failure, e.g., a machine exception.