Enum cargo_edit::ErrorKind[][src]

pub enum ErrorKind {
Show 26 variants Io(Error), Git(Error), CargoMetadata(Error), Semver(Error), CratesIndex(Error), Msg(String), ReadHomeDirFailure, InvalidSummaryJson, EmptyCrateName, NoCrate(String), NoVersionsAvailable, ParseCargoToml, MissingManifest, InvalidManifest, UnexpectedRootManifest, NonExistentTable(String), NonExistentDependency(StringString), InvalidCargoConfig, NoSuchSourceFound(String), NoSuchRegistryFound(String), ParseVersion(StringString), MissingRegistraryCheckout(PathBuf), NonUnicodeGitPath, UnsupportedPrereleaseVersionScheme, InvalidReleaseLevel(&'static strVersion), UnsupportedVersionReq(String), // some variants omitted
}
Expand description

The kind of an error.

Variants

Io(Error)

An error from the std::io module

Tuple Fields of Io

0: Error
Git(Error)

An error from the git2 crate

Tuple Fields of Git

0: Error
CargoMetadata(Error)

An error from the cargo_metadata crate

Tuple Fields of CargoMetadata

0: Error
Semver(Error)

An error from the semver crate

Tuple Fields of Semver

0: Error
CratesIndex(Error)

An error from the crates-index crate

Tuple Fields of CratesIndex

0: Error
Msg(String)

A convenient variant for String.

Tuple Fields of Msg

0: String
ReadHomeDirFailure

Failed to read home directory

InvalidSummaryJson

Invalid JSON in registry index

EmptyCrateName

Given crate name is empty

NoCrate(String)

No crate by that name exists

Tuple Fields of NoCrate

0: String
NoVersionsAvailable

No versions available

ParseCargoToml

Unable to parse external Cargo.toml

MissingManifest

Cargo.toml could not be found.

InvalidManifest

Cargo.toml is valid toml, but doesn’t contain the expected fields

UnexpectedRootManifest

Found a workspace manifest when expecting a normal manifest

NonExistentTable(String)

The TOML table could not be found.

Tuple Fields of NonExistentTable

0: String
NonExistentDependency(StringString)

The dependency could not be found.

Tuple Fields of NonExistentDependency

0: String1: String
InvalidCargoConfig

Config of cargo is invalid

NoSuchSourceFound(String)

Unable to find the source specified by ‘replace-with’

Tuple Fields of NoSuchSourceFound

0: String
NoSuchRegistryFound(String)

Unable to find the specified registry

Tuple Fields of NoSuchRegistryFound

0: String
ParseVersion(StringString)

Failed to parse a version for a dependency

Tuple Fields of ParseVersion

0: String1: String
MissingRegistraryCheckout(PathBuf)

Missing registry checkout in the cargo registry

Tuple Fields of MissingRegistraryCheckout

0: PathBuf
NonUnicodeGitPath

Non Unicode git path

UnsupportedPrereleaseVersionScheme

An unsupported pre-release version was used.

InvalidReleaseLevel(&'static strVersion)

Cannot increment the specified field of the version.

Tuple Fields of InvalidReleaseLevel

0: &'static str1: Version
UnsupportedVersionReq(String)

Modifying a version req with an unsupported comparator.

Tuple Fields of UnsupportedVersionReq

0: String

Implementations

A string describing the error kind.

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.