AxoupdateError

Enum AxoupdateError 

Source
pub enum AxoupdateError {
Show 28 variants Reqwest(Error), Io(Error), CaminoPathBuf(FromPathBufError), Homedir(GetHomeError), Axoasset(AxoassetError), Axoprocess(AxoprocessError), Axotag(TagError), Gazenot(GazenotError), Version(Error), UrlParseError(ParseError), CaminoConversionFailed { path: PathBuf, }, BackendDisabled { backend: String, }, ConfigFetchFailed { app_name: String, }, ReceiptLoadFailed { app_name: String, }, NoReceipt { app_name: String, }, NoAppName {}, NoAppNamePassed {}, NoHome {}, NoInstallerForPackage {}, NoStableReleases { app_name: String, }, ReleaseNotFound { name: String, app_name: String, }, VersionNotFound { name: String, app_name: String, version: String, }, UpdateSelf {}, NotConfigured { missing_field: String, }, InstallFailed { status: Option<i32>, stdout: Option<String>, stderr: Option<String>, }, CleanupFailed {}, MultipleGitHubAPIs { ghe_env_var: String, github_env_var: String, }, GitHubDomainParseError { env_var: String, ghe_env_var: String, url: String, },
}
Expand description

An enum representing all of this crate’s errors

Variants§

§

Reqwest(Error)

Passed through from Reqwest

§

Io(Error)

Passed through from std::io::Error

§

CaminoPathBuf(FromPathBufError)

Passed through from Camino

§

Homedir(GetHomeError)

Passed through from homedir

§

Axoasset(AxoassetError)

Passed through from axoasset

§

Axoprocess(AxoprocessError)

Passed through from axoprocess

§

Axotag(TagError)

Passed through from axotag

§

Gazenot(GazenotError)

Passed through from gazenot

§

Version(Error)

Failed to parse a version

§

UrlParseError(ParseError)

Failed to parse a URL

§

CaminoConversionFailed

Failure when converting a PathBuf to a Utf8PathBuf

Fields

§path: PathBuf

The path which Camino failed to convert

§

BackendDisabled

Indicates that the only updates available are located at a source this crate isn’t configured to support. This is returned if the appropriate source is disabled via features.

Fields

§backend: String

The name of the backend

§

ConfigFetchFailed

Indicates that axoupdater wasn’t able to determine the config file path for this app. This path is where install receipts are located.

Fields

§app_name: String

This app’s name

§

ReceiptLoadFailed

Indicates that the install receipt for this app couldn’t be read.

Fields

§app_name: String

This app’s name

§

NoReceipt

Not a generic receipt load failure, but the receipt itself doesn’t exist.

Fields

§app_name: String

This app’s name

§

NoAppName

Indicates that this app’s name couldn’t be determined when trying to autodetect it.

§

NoAppNamePassed

Indicates that no app name was specified before the updater process began.

§

NoHome

Indicates that the home directory couldn’t be determined.

§

NoInstallerForPackage

Indicates that no installer is available for this OS when looking up the latest release.

§

NoStableReleases

Indicates that no stable releases exist for the app being updated.

Fields

§app_name: String

This app’s name

§

ReleaseNotFound

Indicates that no releases exist for this app at all.

Fields

§name: String

The workspace’s name

§app_name: String

This app’s name

§

VersionNotFound

Indicates that no releases exist for this app at all.

Fields

§name: String

The workspace’s name

§app_name: String

This app’s name

§version: String

The version we failed to find

§

UpdateSelf

This error catches an edge case where the axoupdater executable was run under its default filename, “axoupdater”, instead of being installed under an app-specific name.

§

NotConfigured

Indicates that a mandatory config field wasn’t specified before the update process ran.

Fields

§missing_field: String

The name of the missing field

§

InstallFailed

Indicates the installation failed for some reason we’re not sure of

Fields

§status: Option<i32>

The status code from the underlying process, if any

§stdout: Option<String>

The stdout, decoded to UTF-8. This will be None if it was piped to the terminal when running the installer.

§stderr: Option<String>

The stderr, decoded to UTF-8. This will be None if it was piped to the terminal when running the installer.

§

CleanupFailed

self_replace/self_delete failed

§

MultipleGitHubAPIs

User passed conflicting GitHub API environment variables

Fields

§ghe_env_var: String

The GitHub Enterprise env var

§github_env_var: String

The GitHub env var

§

GitHubDomainParseError

Couldn’t parse the text domain (could be an IP, etc.)

Fields

§env_var: String

The GitHub env var

§ghe_env_var: String

The GitHub Enterprise env var

§url: String

The supplied URL

Trait Implementations§

Source§

impl Debug for AxoupdateError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Diagnostic for AxoupdateError

Source§

fn help(&self) -> Option<Box<dyn Display + '_>>

Additional help text related to this Diagnostic. Do you have any advice for the poor soul who’s just run into this issue?
Source§

fn code<'a>(&'a self) -> Option<Box<dyn Display + 'a>>

Unique diagnostic code that can be used to look up more information about this 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 severity(&self) -> Option<Severity>

Diagnostic severity. This may be used by ReportHandlers to change the display format of this diagnostic. Read more
Source§

fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>

URL to visit for a more detailed explanation/help about this Diagnostic.
Source§

fn source_code(&self) -> Option<&dyn SourceCode>

Source code to apply this Diagnostic’s Diagnostic::labels to.
Source§

fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>

Labels to apply to this Diagnostic’s Diagnostic::source_code
Source§

fn related<'a>( &'a self, ) -> Option<Box<dyn Iterator<Item = &'a dyn Diagnostic> + 'a>>

Additional related Diagnostics.
Source§

fn diagnostic_source(&self) -> Option<&dyn Diagnostic>

The cause of the error.
Source§

impl Display for AxoupdateError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for AxoupdateError

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AxoassetError> for AxoupdateError

Source§

fn from(source: AxoassetError) -> Self

Converts to this type from the input type.
Source§

impl From<AxoprocessError> for AxoupdateError

Source§

fn from(source: AxoprocessError) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for AxoupdateError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for AxoupdateError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<Error> for AxoupdateError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<FromPathBufError> for AxoupdateError

Source§

fn from(source: FromPathBufError) -> Self

Converts to this type from the input type.
Source§

impl From<GazenotError> for AxoupdateError

Source§

fn from(source: GazenotError) -> Self

Converts to this type from the input type.
Source§

impl From<GetHomeError> for AxoupdateError

Source§

fn from(source: GetHomeError) -> Self

Converts to this type from the input type.
Source§

impl From<ParseError> for AxoupdateError

Source§

fn from(source: ParseError) -> Self

Converts to this type from the input type.
Source§

impl From<TagError> for AxoupdateError

Source§

fn from(source: TagError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T> ToStringFallible for T
where T: Display,

Source§

fn try_to_string(&self) -> Result<String, TryReserveError>

ToString::to_string, but without panic on OOM.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more