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(String, String),
InvalidCargoConfig,
NoSuchSourceFound(String),
NoSuchRegistryFound(String),
ParseVersion(String, String),
MissingRegistraryCheckout(PathBuf),
NonUnicodeGitPath,
UnsupportedPrereleaseVersionScheme,
InvalidReleaseLevel(&'static str, Version),
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: ErrorGit(Error)An error from the git2 crate
Tuple Fields of Git
0: ErrorCargoMetadata(Error)An error from the cargo_metadata crate
Tuple Fields of CargoMetadata
0: ErrorSemver(Error)An error from the semver crate
Tuple Fields of Semver
0: ErrorCratesIndex(Error)An error from the crates-index crate
Tuple Fields of CratesIndex
0: ErrorMsg(String)A convenient variant for String.
Tuple Fields of Msg
0: StringFailed to read home directory
Invalid JSON in registry index
Given crate name is empty
NoCrate(String)No crate by that name exists
Tuple Fields of NoCrate
0: StringNo versions available
Unable to parse external Cargo.toml
Cargo.toml could not be found.
Cargo.toml is valid toml, but doesn’t contain the expected fields
Found a workspace manifest when expecting a normal manifest
NonExistentTable(String)The TOML table could not be found.
Tuple Fields of NonExistentTable
0: StringThe dependency could not be found.
Config of cargo is invalid
NoSuchSourceFound(String)Unable to find the source specified by ‘replace-with’
Tuple Fields of NoSuchSourceFound
0: StringNoSuchRegistryFound(String)Unable to find the specified registry
Tuple Fields of NoSuchRegistryFound
0: StringFailed to parse a version for a dependency
MissingRegistraryCheckout(PathBuf)Missing registry checkout in the cargo registry
Tuple Fields of MissingRegistraryCheckout
0: PathBufNon Unicode git path
An unsupported pre-release version was used.
Cannot increment the specified field of the version.
UnsupportedVersionReq(String)Modifying a version req with an unsupported comparator.
Tuple Fields of UnsupportedVersionReq
0: StringImplementations
A string describing the error kind.