Skip to main content

map_source_error

Function map_source_error 

Source
pub fn map_source_error(wasm_err: WasmError) -> WasmError
Expand description

Map a source-world WIT WasmError to the canonical crate-level WasmError.

Mirrors map_plugin_error for the source binding namespace. Needed so the submit-exchange drain (drain_guest_stream) can map the source world’s terminal-future error into a CamelError via E: Into<CamelError>.