pub enum ShellError {
Setup(SetupErrorWrapper),
Command(CommandErrorWrapper),
Io(Error),
Utf8(Utf8Error),
}
Expand description
Errors that may occur when executing a shell script.
Variants§
Setup(SetupErrorWrapper)
setup error {0}
Command(CommandErrorWrapper)
command error {0}
Io(Error)
i/o error {0}
Utf8(Utf8Error)
utf-8 decoding error {0}
Implementations§
Source§impl ShellError
impl ShellError
Sourcepub fn with_context(self, context: String) -> ShellErrorWrapper
pub fn with_context(self, context: String) -> ShellErrorWrapper
Wrap a raw error with context
to produced a wrapped error.
Trait Implementations§
Source§impl Debug for ShellError
impl Debug for ShellError
Source§impl Display for ShellError
impl Display for ShellError
Source§impl Error for ShellError
impl Error for ShellError
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<CommandErrorWrapper> for ShellError
impl From<CommandErrorWrapper> for ShellError
Source§fn from(source: CommandErrorWrapper) -> Self
fn from(source: CommandErrorWrapper) -> Self
Converts to this type from the input type.
Source§impl From<Error> for ShellError
impl From<Error> for ShellError
Source§impl From<SetupErrorWrapper> for ShellError
impl From<SetupErrorWrapper> for ShellError
Source§fn from(source: SetupErrorWrapper) -> Self
fn from(source: SetupErrorWrapper) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShellError
impl !RefUnwindSafe for ShellError
impl Send for ShellError
impl Sync for ShellError
impl Unpin for ShellError
impl !UnwindSafe for ShellError
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