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: 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
Failed 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: String
No 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: String
The 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: String
NoSuchRegistryFound(String)
Unable to find the specified registry
Tuple Fields of NoSuchRegistryFound
0: String
Failed to parse a version for a dependency
MissingRegistraryCheckout(PathBuf)
Missing registry checkout in the cargo registry
Tuple Fields of MissingRegistraryCheckout
0: PathBuf
Non 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: String
Implementations
A string describing the error kind.