pub async fn convert(
executable_path: impl AsRef<Path> + Send,
cmd: Command<'_>,
options: Options,
) -> Result<Output, ConversionError>Expand description
Runs the BSPC executable with the given arguments, converting a single file to a different format, returning the complete output of the process (all output files, logs, and exit code).
The future returned by this function should be polled to completion, in order to best ensure that the temporary directory is cleaned up after the child process exits.
To time-out the child process operation (or otherwise cancel it), pass a
CancellationToken to the Options argument.
§Executable
The BSPC executable must already exist in the filesystem before calling this function.
§Errors
See the variants on the ConversionError enum for more information.