pub enum ErrorKind {
Io(Error),
Json(Error),
Msg(String),
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
}
Expand description
The kind of an error.
Variants§
Io(Error)
Wrapper of standard I/O error.
Json(Error)
Wrapper of JSON error.
Msg(String)
A convenient variant for String.
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.