Function wasmer_vm::resume_panic[][src]

pub unsafe fn resume_panic(payload: Box<dyn Any + Send>) -> !

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 wasmer_call or wasmer_call_trampoline must have been previously called.