Enum cov::error::ErrorKind[]

pub enum ErrorKind {
    Msg(String),
    Io(Error),
    Json(Error),
    UnknownFileType(u32),
    VersionMismatch(VersionVersion),
    Eof,
    UnknownTag(u32),
    UnsupportedAttr(&'static stru32),
    UnsupportedVersion(u32),
    MissingFunction(u32Ident),
    RecordWithoutFunction,
    CountsMismatch(&'static strTypeusizeusize),
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

Wrapper of standard I/O error.

Wrapper of JSON error.

Trying to read a file which is not GCNO/GCDA format.

Version of a Gcov does not match that of the Graph when using merge().

Reached the end of a record when reading. Usually not fatal.

Encountered an unknown record.

Encountered an unknown block/arc flag.

The GCNO/GCDA is created for a GCC version that is not recognized by the cov crate.

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).

Encountered a GCNO record without the corresponding function. This means the GCNO file is corrupt.

The expected number of profilable arcs on the GCDA and GCNO differs.

Methods

impl ErrorKind

A string describing the error kind.

Trait Implementations

impl From<ErrorKind> for Error

Performs the conversion.

impl Debug for ErrorKind

Formats the value using the given formatter. Read more

impl Display for ErrorKind

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ErrorKind

Performs the conversion.

impl From<String> for ErrorKind

Performs the conversion.

impl From<Error> for ErrorKind

Performs the conversion.

impl IsEof for ErrorKind
[src]

Checks whether the error is caused by an unexpected EOF.

Auto Trait Implementations

impl Send for ErrorKind

impl Sync for ErrorKind