pub enum ErrorEvent {
SubprocError(ExitStatus),
IoError(Error),
}
Expand description
This is the error type that our event source’s callback might receive. If something went wrong, it could be for one of two reasons:
- the subprocess returned a non-zero status:
SubprocError(status)
- there was an IO error handling the subprocess:
IoError(ioerror)
Variants§
SubprocError(ExitStatus)
IoError(Error)
Trait Implementations§
Source§impl Debug for ErrorEvent
impl Debug for ErrorEvent
Source§impl Display for ErrorEvent
impl Display for ErrorEvent
Source§impl Error for ErrorEvent
impl Error for ErrorEvent
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 ErrorEvent
impl !RefUnwindSafe for ErrorEvent
impl Send for ErrorEvent
impl Sync for ErrorEvent
impl Unpin for ErrorEvent
impl !UnwindSafe for ErrorEvent
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