Skip to main content

run

Function run 

Source
pub fn run<F: WireFunction>(
    wasm: &[u8],
    request: F::Request,
) -> Result<DispatchOutcome<F::Response>, RunError>
Expand description

Build a temporary plugin session, dispatch one wire call, and return the wire outcome.

Instantiation and handshake failures are returned as RunError. Wire-call failures, including traps or panics inside Extism dispatch, are caught by the protocol layer and returned as DispatchOutcome::Fallback according to the function’s fallback policy.