#[non_exhaustive]pub enum AxoprojectError {
Show 17 variants
Axoasset(AxoassetError),
Axoprocess(AxoprocessError),
CargoMetadata(Error),
ParseChangelog(Error),
Generic(GenericManifestParseError),
FromUtf8(FromUtf8Error),
ParseCargoToml {
source: SourceFile,
span: Option<SourceSpan>,
details: TomlError,
},
NamelessNpmPackage {
manifest: Utf8PathBuf,
},
BuildInfoParse {
manifest_path: Utf8PathBuf,
details: Error,
},
InconsistentRepositoryKey {
file1: Utf8PathBuf,
url1: String,
file2: Utf8PathBuf,
url2: String,
},
AutoIncludeSearch {
dir: Utf8PathBuf,
details: Error,
},
UnknownRepoStyle {
url: String,
},
RepoParseError {
repo: String,
},
UrlParseError(ParseError),
NotGitHubError {
url: String,
},
ChangelogVersionNotFound {
path: Utf8PathBuf,
version: Version,
},
CargoMissing {},
}Expand description
An Error/Diagnostic returned by Axoproject
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Axoasset(AxoassetError)
Axoasset returned an error (I/O error)
Axoprocess(AxoprocessError)
Axoprocess returned an error (I/O error)
CargoMetadata(Error)
An error occurred in guppy/cargo-metadata when trying to find a cargo project
ParseChangelog(Error)
An error occurred in parse_changelog
Generic(GenericManifestParseError)
An error parsing a dist manifest
FromUtf8(FromUtf8Error)
An error producing a string
ParseCargoToml
An error parsing a Cargo.toml
NamelessNpmPackage
We found a package.json but it didn’t have “name” set
Fields
manifest: Utf8PathBufpath to the package.json
BuildInfoParse
We tried to get the bins from a package.json but something went wrong
InconsistentRepositoryKey
Your workspace gave several different values for “repository”
AutoIncludeSearch
An error that occurred while trying to find READMEs and whatnot in your project dir
UnknownRepoStyle
An error that occurred while trying to parse a repository string
RepoParseError
An error that occurred because a repository string could not be parsed for a specific reason
UrlParseError(ParseError)
An error that occurred when parsing a repository string
NotGitHubError
An error returned when a non-GitHub URL is parsed
ChangelogVersionNotFound
We searched a changelog file but found no result
CargoMissing
We couldn’t parse a workspace because there’s no Cargo
Trait Implementations§
Source§impl Debug for AxoprojectError
impl Debug for AxoprojectError
Source§impl Diagnostic for AxoprojectError
impl Diagnostic for AxoprojectError
Source§fn code(&self) -> Option<Box<dyn Display + '_>>
fn code(&self) -> Option<Box<dyn Display + '_>>
Diagnostic. Ideally also globally unique, and documented
in the toplevel crate’s documentation for easy searching. Rust path
format (foo::bar::baz) is recommended, but more classic codes like
E0123 or enums will work just fine.Source§fn help(&self) -> Option<Box<dyn Display + '_>>
fn help(&self) -> Option<Box<dyn Display + '_>>
Diagnostic. Do you have any
advice for the poor soul who’s just run into this issue?Source§fn severity(&self) -> Option<Severity>
fn severity(&self) -> Option<Severity>
ReportHandlers to change the display format
of this diagnostic. Read moreSource§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic’s Diagnostic::source_codeSource§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic’s Diagnostic::labels to.Diagnostics.Source§fn url(&self) -> Option<Box<dyn Display + '_>>
fn url(&self) -> Option<Box<dyn Display + '_>>
Diagnostic.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
Source§impl Display for AxoprojectError
impl Display for AxoprojectError
Source§impl Error for AxoprojectError
impl Error for AxoprojectError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AxoassetError> for AxoprojectError
impl From<AxoassetError> for AxoprojectError
Source§fn from(source: AxoassetError) -> Self
fn from(source: AxoassetError) -> Self
Source§impl From<AxoprocessError> for AxoprojectError
impl From<AxoprocessError> for AxoprojectError
Source§fn from(source: AxoprocessError) -> Self
fn from(source: AxoprocessError) -> Self
Source§impl From<Error> for AxoprojectError
impl From<Error> for AxoprojectError
Source§impl From<Error> for AxoprojectError
impl From<Error> for AxoprojectError
Source§impl From<FromUtf8Error> for AxoprojectError
impl From<FromUtf8Error> for AxoprojectError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Source§impl From<GenericManifestParseError> for AxoprojectError
impl From<GenericManifestParseError> for AxoprojectError
Source§fn from(source: GenericManifestParseError) -> Self
fn from(source: GenericManifestParseError) -> Self
Source§impl From<ParseError> for AxoprojectError
impl From<ParseError> for AxoprojectError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for AxoprojectError
impl !RefUnwindSafe for AxoprojectError
impl Send for AxoprojectError
impl Sync for AxoprojectError
impl Unpin for AxoprojectError
impl UnsafeUnpin for AxoprojectError
impl !UnwindSafe for AxoprojectError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.