pub enum DifftestsError {
IO(Error),
Json(Error, Option<PathBuf>),
SelfJsonDoesNotExist(PathBuf),
CargoDifftestsVersionDoesNotExist(PathBuf),
CargoDifftestsVersionMismatch(String, String),
ProcessFailed {
name: &'static str,
},
Git(Error),
DifftestCleaned,
MultipleMainGroupBinaries(PathBuf, BTreeSet<PathBuf>),
EmptyGroup(PathBuf),
InvalidConfig(InvalidConfigError),
}Expand description
Errors that can occur when running cargo difftests.
Variants§
IO(Error)
IO error.
Json(Error, Option<PathBuf>)
JSON error (during the deserialization of the file at the given PathBuf, if any).
SelfJsonDoesNotExist(PathBuf)
The self.json file does not exist.
CargoDifftestsVersionDoesNotExist(PathBuf)
The cargo_difftests_version file does not exist.
CargoDifftestsVersionMismatch(String, String)
The content of the cargo_difftests_version file indicates
a mismatch between the version of cargo_difftests_testclient
that generated the difftest and the version of cargo_difftests.
ProcessFailed
The process failed.
Git(Error)
A git2::Error occurred.
DifftestCleaned
The difftest has been cleaned.
MultipleMainGroupBinaries(PathBuf, BTreeSet<PathBuf>)
EmptyGroup(PathBuf)
InvalidConfig(InvalidConfigError)
Trait Implementations§
Source§impl Debug for DifftestsError
impl Debug for DifftestsError
Source§impl Display for DifftestsError
impl Display for DifftestsError
Source§impl Error for DifftestsError
impl Error for DifftestsError
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()
Source§impl From<Error> for DifftestsError
impl From<Error> for DifftestsError
Source§impl From<Error> for DifftestsError
impl From<Error> for DifftestsError
Auto Trait Implementations§
impl Freeze for DifftestsError
impl !RefUnwindSafe for DifftestsError
impl Send for DifftestsError
impl Sync for DifftestsError
impl Unpin for DifftestsError
impl !UnwindSafe for DifftestsError
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