Skip to main content

map_plugin_error

Function map_plugin_error 

Source
pub fn map_plugin_error(wasm_err: WasmError) -> WasmError
Expand 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).