Enum bspc::ConversionError
source · pub enum ConversionError {
ExecutableNotFound(PathBuf),
TempDirectoryCreationFailed(IoError),
TempDirectoryIo(IoError, PathBuf),
ProcessStartFailure(IoError),
ProcessWaitFailure(IoError),
Cancelled,
UnknownArgument {
unknown_argument: String,
args: Vec<String>,
},
NoInputFilesFound(Output),
ProcessExitFailure(Output),
NoOutputFiles(Output),
}Expand description
Error type returned by convert.
Variants
ExecutableNotFound(PathBuf)
The provided path to the BSPC executable does not exist or is not a file.
TempDirectoryCreationFailed(IoError)
Failed to create a temporary directory to store inputs/outputs.
TempDirectoryIo(IoError, PathBuf)
Failed to read/write to the temporary directory storing inputs/outputs.
ProcessStartFailure(IoError)
Failed to start the child BSPC process.
ProcessWaitFailure(IoError)
Failed to wait for the child BSPC process to exit.
Cancelled
The conversion process was cancelled via the cancellation token.
UnknownArgument
Fields
unknown_argument: StringThe offending argument.
The child BSPC process was provided an unknown argument.
NoInputFilesFound(Output)
The child BSPC process did find any input files when it ran.
If a standard command was used, then this indicates that the temporary file may have been deleted before BPSC ran.
ProcessExitFailure(Output)
The child BSPC process exited with a non-zero exit code.
NoOutputFiles(Output)
The child BSPC process resulted in no output files.