Skip to main content

launch_and_parse_process_driver_wasm

Function launch_and_parse_process_driver_wasm 

Source
pub fn launch_and_parse_process_driver_wasm(
    wasm: &[u8],
    request: LaunchRequest,
    lines: Vec<String>,
) -> Result<(Result<LaunchPlan, String>, Vec<Event>), RuntimeError>
Expand description

Compiles wasm as a process driver the way describe_process_driver_wasm does, then calls launch with request and parse with lines on that one instance, as a run would.

Returns the driver’s launch answer — its own refusal is the inner Err — and the events parse read. parse is called whether or not launch refused, so a driver’s line reading can be checked on its own. The same blocking and error-naming rules apply.