pub enum HarnessError {
Spawn(Error),
ExitStatus(ExitStatus),
Timeout(Duration),
NoResults,
Protocol(String),
}Expand description
Errors from driving an adapter.
Variants§
Spawn(Error)
The adapter binary could not be spawned at all.
ExitStatus(ExitStatus)
The adapter exited nonzero — harness error, not a check failure.
Timeout(Duration)
The adapter outlived its wall-clock budget and was killed.
NoResults
The adapter emitted zero parseable check results.
Protocol(String)
A protocol line was structurally invalid.
Trait Implementations§
Source§impl Debug for HarnessError
impl Debug for HarnessError
Source§impl Display for HarnessError
impl Display for HarnessError
Source§impl Error for HarnessError
impl Error for HarnessError
1.30.0 · 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 HarnessError
impl !UnwindSafe for HarnessError
impl Freeze for HarnessError
impl Send for HarnessError
impl Sync for HarnessError
impl Unpin for HarnessError
impl UnsafeUnpin for HarnessError
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