Enum xscript::RunErrorKind
source · pub enum RunErrorKind {
Failed(RunOutput),
Io(Error),
Custom(String),
Other(Box<dyn Sync + Send + Error + 'static>),
}
Expand description
Error while running a command.
Variants§
Failed(RunOutput)
The command failed with a non-zero exit code.
Io(Error)
There was an io::Error
.
Custom(String)
A custom error message.
Other(Box<dyn Sync + Send + Error + 'static>)
The was some other error.
Implementations§
source§impl RunErrorKind
impl RunErrorKind
Trait Implementations§
source§impl Debug for RunErrorKind
impl Debug for RunErrorKind
source§impl From<&str> for RunErrorKind
impl From<&str> for RunErrorKind
source§impl From<Error> for RunErrorKind
impl From<Error> for RunErrorKind
source§impl From<RunOutput> for RunErrorKind
impl From<RunOutput> for RunErrorKind
Auto Trait Implementations§
impl !RefUnwindSafe for RunErrorKind
impl Send for RunErrorKind
impl Sync for RunErrorKind
impl Unpin for RunErrorKind
impl !UnwindSafe for RunErrorKind
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