pub struct RunnerFailure { /* private fields */ }Expand description
Structured runner failure retained inside io::Error, with its original source intact.
Implementations§
Source§impl RunnerFailure
impl RunnerFailure
Sourcepub fn from_io(error: &Error) -> Option<&Self>
pub fn from_io(error: &Error) -> Option<&Self>
Downcast runner provenance from the outer I/O error; terminal pass-through has none.
Sourcepub fn phase(&self) -> RunnerPhase
pub fn phase(&self) -> RunnerPhase
Operation that failed; no message parsing is needed.
Sourcepub fn termination(&self) -> LeaderTermination
pub fn termination(&self) -> LeaderTermination
Evidence about the leader only, independent of escaped descendants or pipe EOF.
Sourcepub fn source_io_error(&self) -> &Error
pub fn source_io_error(&self) -> &Error
Original I/O error, including its OS code when one exists. The outer error is a wrapper.
Trait Implementations§
Source§impl Debug for RunnerFailure
impl Debug for RunnerFailure
Source§impl Display for RunnerFailure
impl Display for RunnerFailure
Source§impl Error for RunnerFailure
impl Error for RunnerFailure
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 !RefUnwindSafe for RunnerFailure
impl !UnwindSafe for RunnerFailure
impl Freeze for RunnerFailure
impl Send for RunnerFailure
impl Sync for RunnerFailure
impl Unpin for RunnerFailure
impl UnsafeUnpin for RunnerFailure
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