pub enum CoverageError {
ToolNotInstalled,
SubprocessFailed(String),
ParseError(String),
Io(Error),
}Expand description
Errors that can arise during a coverage run.
Variants§
ToolNotInstalled
cargo-llvm-cov is not installed.
SubprocessFailed(String)
The coverage subprocess returned a non-zero exit code.
ParseError(String)
The coverage output could not be parsed as JSON of the expected shape.
Io(Error)
An I/O error occurred while reading or writing baseline files.
Trait Implementations§
Source§impl Debug for CoverageError
impl Debug for CoverageError
Source§impl Display for CoverageError
impl Display for CoverageError
Source§impl Error for CoverageError
impl Error for CoverageError
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 CoverageError
impl !RefUnwindSafe for CoverageError
impl Send for CoverageError
impl Sync for CoverageError
impl Unpin for CoverageError
impl UnsafeUnpin for CoverageError
impl !UnwindSafe for CoverageError
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