Enum cargo::util::errors::CargoErrorKind []

pub enum CargoErrorKind {
    Msg(String),
    CrateRegistry(ErrorKind),
    ParseSemver(ReqParseError),
    Semver(SemVerError),
    Ignore(Error),
    Io(Error),
    SerdeJson(Error),
    TomlSer(Error),
    TomlDe(Error),
    ParseInt(ParseIntError),
    ParseBool(ParseBoolError),
    Parse(ParseError),
    Git(Error),
    Curl(Error),
    Internal(Box<CargoErrorKind>),
    ProcessErrorKind(ProcessError),
    CargoTestErrorKind(CargoTestError),
    HttpNot200(u32String),
    // some variants omitted
}

The kind of an error.

Variants

A convenient variant for String.

Methods

impl CargoErrorKind

A string describing the error kind.

Trait Implementations

impl Debug for CargoErrorKind

Formats the value using the given formatter.

impl Display for CargoErrorKind

Formats the value using the given formatter. Read more

impl From<ErrorKind> for CargoErrorKind

Performs the conversion.

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

Performs the conversion.

impl From<String> for CargoErrorKind

Performs the conversion.

impl From<CargoError> for CargoErrorKind

Performs the conversion.