pub struct CargoTestError {
pub test: Test,
pub desc: String,
pub exit: Option<ExitStatus>,
pub causes: Vec<ProcessError>,
}Expand description
Error when testcases fail
Fields§
§test: Test§desc: String§exit: Option<ExitStatus>§causes: Vec<ProcessError>Implementations§
Source§impl CargoTestError
impl CargoTestError
pub fn new(test: Test, errors: Vec<ProcessError>) -> Self
pub fn hint(&self, ws: &Workspace<'_>, opts: &CompileOptions) -> String
Trait Implementations§
Source§impl Debug for CargoTestError
impl Debug for CargoTestError
Source§impl Display for CargoTestError
impl Display for CargoTestError
Source§impl Error for CargoTestError
impl Error for CargoTestError
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 Freeze for CargoTestError
impl RefUnwindSafe for CargoTestError
impl Send for CargoTestError
impl Sync for CargoTestError
impl Unpin for CargoTestError
impl UnwindSafe for CargoTestError
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