pub enum TestRunError {
Spawn {
package: String,
target: String,
executable: PathBuf,
source: Error,
},
Wait {
package: String,
target: String,
executable: PathBuf,
source: Error,
},
OutputIo(Error),
SinkIo(Error),
}Expand description
Errors produced while running tests.
Variants§
Spawn
The OS could not start the test executable.
Wait
The OS started the test executable, but waiting for it to finish failed.
OutputIo(Error)
Reading stdout / stderr from the child process failed.
SinkIo(Error)
Writing captured stdout / stderr to the sink failed. The runner stops at the first failure rather than continuing silently.
Trait Implementations§
Source§impl Debug for TestRunError
impl Debug for TestRunError
Source§impl Display for TestRunError
impl Display for TestRunError
Source§impl Error for TestRunError
impl Error for TestRunError
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 TestRunError
impl !UnwindSafe for TestRunError
impl Freeze for TestRunError
impl Send for TestRunError
impl Sync for TestRunError
impl Unpin for TestRunError
impl UnsafeUnpin for TestRunError
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