Function wasmtime_runtime::resume_panic
source · pub unsafe fn resume_panic(payload: Box<dyn Any + Send>) -> !
Expand description
Carries a Rust panic across wasm code and resumes the panic on the other side.
§Safety
Only safe to call when wasm code is on the stack, aka catch_traps
must
have been previously called. Additionally no Rust destructors can be on the
stack. They will be skipped and not executed.