pub fn map_plugin_error(wasm_err: WasmError) -> WasmErrorExpand description
Map a WIT bindings [plugin::WasmError] to the canonical crate-level WasmError.
Both the call_process and process_streaming_exchange paths encounter
the WIT-level error type after peel_concurrent strips the wasmtime
error layers. This remaps the four WIT variants to the crate’s own
error variants, collapsing Timeout into GuestPanic (the guest timed
out — not a host-level epoch deadline).