branelet

Function run

Source
pub(crate) async fn run(sub_command: SubCommand) -> Result<i32, LetError>
Expand description

Edited: instantiating callback earlier, updated callback policy (new callback interface + new events). Also returning LetErrors.

Runs the job that this branelet is in charge of.

Arguments

  • sub_command: The subcommand to execute (is it code, oas or nop?)
  • callback: The Callback future that asynchronously constructs a Callback instance.

Returns
The exit code of the nested application on success, or a LetError otherwise.