brane_let::exec_ecu

Function handle

Source
pub async fn handle(
    function: String,
    arguments: Map<FullValue>,
    working_dir: PathBuf,
) -> Result<PackageResult, LetError>
Expand description

Edited: working with new callback interface + events.

Handles a package containing ExeCUtable code (ECU).

Arguments

  • function: The function name to execute in the package.
  • arguments: The arguments, as a map of argument name / value pairs.
  • working_dir: The wokring directory for this package.
  • callback: The callback object we use to keep in touch with the driver.

Returns
The return state of the package call on success, or a LetError otherwise.