Enum cov::error::ErrorKind [−]
pub enum ErrorKind { Msg(String), Io(Error), Json(Error), UnknownFileType(u32), VersionMismatch(Version, Version), Eof, UnknownTag(u32), UnsupportedAttr(&'static str, u32), UnsupportedVersion(u32), MissingFunction(u32, Ident), RecordWithoutFunction, CountsMismatch(&'static str, Type, usize, usize), // some variants omitted }
The kind of an error.
Variants
Msg(String)
A convenient variant for String.
Io(Error)
Wrapper of standard I/O error.
Json(Error)
Wrapper of JSON error.
UnknownFileType(u32)
Trying to read a file which is not GCNO/GCDA format.
VersionMismatch(Version, Version)
Eof
Reached the end of a record when reading. Usually not fatal.
UnknownTag(u32)
Encountered an unknown record.
UnsupportedAttr(&'static str, u32)
Encountered an unknown block/arc flag.
UnsupportedVersion(u32)
The GCNO/GCDA is created for a GCC version that is not recognized by the cov
crate.
MissingFunction(u32, Ident)
The GCDA provides statistics of a function which cannot be found from the Graph
. This error typically
arises when merging a GCDA before its corresponding GCNO, or running an outdated version of program after
the code has been recompiled (which generates a new GCNO).
RecordWithoutFunction
Encountered a GCNO record without the corresponding function. This means the GCNO file is corrupt.
CountsMismatch(&'static str, Type, usize, usize)
The expected number of profilable arcs on the GCDA and GCNO differs.
Methods
impl ErrorKind
impl ErrorKind
pub fn description(&self) -> &str
pub fn description(&self) -> &str
A string describing the error kind.
Trait Implementations
impl From<ErrorKind> for Error
impl From<ErrorKind> for Error
impl Debug for ErrorKind
impl Debug for ErrorKind
impl Display for ErrorKind
impl Display for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl<'a> From<&'a str> for ErrorKind
impl From<String> for ErrorKind
impl From<String> for ErrorKind
impl From<Error> for ErrorKind
impl From<Error> for ErrorKind
impl IsEof for ErrorKind
[src]
impl IsEof for ErrorKind