pub enum ConversionError {
ExecutableNotFound(PathBuf),
TempDirectoryCreationFailed(Error),
TempDirectoryIo(Error, PathBuf),
ProcessStartFailure(Error),
ProcessWaitFailure(Error),
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(Error)
Failed to create a temporary directory to store inputs/outputs.
TempDirectoryIo(Error, PathBuf)
Failed to read/write to the temporary directory storing inputs/outputs.
ProcessStartFailure(Error)
Failed to start the child BSPC process.
ProcessWaitFailure(Error)
Failed to wait for the child BSPC process to exit.
Cancelled
The conversion process was cancelled via the cancellation token.
UnknownArgument
The child BSPC process was provided an unknown argument.
Fields
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.
Trait Implementations§
Source§impl Debug for ConversionError
impl Debug for ConversionError
Source§impl Display for ConversionError
impl Display for ConversionError
Source§impl Error for ConversionError
impl Error for ConversionError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ConversionError
impl !RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl !UnwindSafe for ConversionError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more