pub enum CoverageError {
Show 14 variants
FailedToResolvePackagePath,
PathDoesntExist(PathBuf),
CargoMetadataError(Error),
WorkspacesNotPermitted,
NoPackagesFound,
CommandFailedToRun(Error),
StdoutIsNotValidUtf8(FromUtf8Error),
CommandNotFound(Vec<String>),
BuildError(BuildError),
TestError(TestError),
IoError(Error),
ClangFailed(String),
LlvmProfdataFailed(String),
LlvmCovFailed(String),
}Expand description
The error type used in coverage.
Variants§
FailedToResolvePackagePath
We’ve been unable to resolve the path of the package. It could be due to the user providing an invalid path or due to us not being able to get the current working directory or due to us failing to canonicalize the path of the package.
PathDoesntExist(PathBuf)
One of the paths that are required for coverage was checked for and it doesn’t exist.
CargoMetadataError(Error)
An error occurred when we tried to get the cargo metadata of the package.
WorkspacesNotPermitted
Found multiple packages when we got the metadata leading us to know that this is a workspace which is currently not permitted.
NoPackagesFound
Could not find any packages when we got the cargo metadata and therefore there is nothing
that we can perform.
CommandFailedToRun(Error)
We ran a command but it failed to run or failed during waiting.
StdoutIsNotValidUtf8(FromUtf8Error)
One of the commands produced stdout output that wasn’t valid utf-8
CommandNotFound(Vec<String>)
One of the commands that we look for were not found in the system.
BuildError(BuildError)
An error was encountered when trying to build the package.
TestError(TestError)
An error was encountered when trying to test the package.
IoError(Error)
A generic IO error.
ClangFailed(String)
An error was encountered when running the clang command
LlvmProfdataFailed(String)
An error was encountered when running the llvm-profdata command
LlvmCovFailed(String)
An error was encountered when running the llvm-cov command
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for CoverageError
impl From<Error> for CoverageError
Source§impl From<Error> for CoverageError
impl From<Error> for CoverageError
Source§impl From<FromUtf8Error> for CoverageError
impl From<FromUtf8Error> for CoverageError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Auto Trait Implementations§
impl Freeze for CoverageError
impl !RefUnwindSafe for CoverageError
impl Send for CoverageError
impl Sync for CoverageError
impl Unpin 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
Source§impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
impl<T, U> ContextualTryInto<U> for Twhere
U: ContextualTryFrom<T>,
type Error = <U as ContextualTryFrom<T>>::Error
type Context = <U as ContextualTryFrom<T>>::Context
fn contextual_try_into( self, context: &<U as ContextualTryFrom<T>>::Context, ) -> Result<U, <U as ContextualTryFrom<T>>::Error>
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more