pub enum ProcessError {
NotFound {
program: String,
},
Spawn {
command: String,
source: Error,
},
Failed {
command: String,
status: String,
stderr: String,
},
NoDirectoryName {
path: PathBuf,
},
}Expand description
Errors produced while building or executing a child process.
Variants§
NotFound
The program is not installed or not on PATH.
Spawn
The process could not be started.
Failed
The process ran but exited unsuccessfully.
Fields
NoDirectoryName
A command needed the project’s directory name but the path has none.
Trait Implementations§
Source§impl Debug for ProcessError
impl Debug for ProcessError
Source§impl Display for ProcessError
impl Display for ProcessError
Source§impl Error for ProcessError
impl Error for ProcessError
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()
Source§impl From<ProcessError> for Error
impl From<ProcessError> for Error
Source§fn from(source: ProcessError) -> Self
fn from(source: ProcessError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ProcessError
impl !UnwindSafe for ProcessError
impl Freeze for ProcessError
impl Send for ProcessError
impl Sync for ProcessError
impl Unpin for ProcessError
impl UnsafeUnpin for ProcessError
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