tasklet_submit

Function tasklet_submit 

Source
pub fn tasklet_submit(
    wasm: &[u8],
    input: &[u8],
    fuel: u64,
    output_buf: &mut [u8],
) -> Result<(u64, usize)>
Expand description

Submit a WASM tasklet for execution on a fabric CPU resource.

§Parameters

  • wasm: The WASM module bytes to execute.
  • input: Input data passed to the tasklet.
  • fuel: WASM fuel limit (instruction budget).
  • output_buf: Buffer for tasklet output.

§Returns

On success, returns (exit_code, output_len).

§Errors

Returns a FabricError if the submission fails.