pub enum ShellError {
Status(String, ExitStatus),
IoError(Error),
VarError(VarError),
Errno(&'static str, Errno),
NoSuchProcess,
}
Variants§
Status(String, ExitStatus)
IoError(Error)
VarError(VarError)
Errno(&'static str, Errno)
NoSuchProcess
Implementations§
Source§impl ShellError
impl ShellError
pub fn from_signal(command: String, signal: u8) -> Self
Trait Implementations§
Source§impl Debug for ShellError
impl Debug for ShellError
Source§impl From<Error> for ShellError
impl From<Error> for ShellError
Source§fn from(error: Error) -> ShellError
fn from(error: Error) -> ShellError
Converts to this type from the input type.
Source§impl From<VarError> for ShellError
impl From<VarError> for ShellError
Source§fn from(error: VarError) -> ShellError
fn from(error: VarError) -> ShellError
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