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
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.
ConfigFetchFailed
Indicates that axoupdater wasn’t able to determine the config file path for this app. This path is where install receipts are located.
ReceiptLoadFailed
Indicates that the install receipt for this app couldn’t be read.
NoReceipt
Not a generic receipt load failure, but the receipt itself doesn’t exist.
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.
ReleaseNotFound
Indicates that no releases exist for this app at all.
VersionNotFound
Indicates that no releases exist for this app at all.
Fields
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.
InstallFailed
Indicates the installation failed for some reason we’re not sure of
Fields
CleanupFailed
self_replace/self_delete failed
MultipleGitHubAPIs
User passed conflicting GitHub API environment variables
GitHubDomainParseError
Couldn’t parse the text domain (could be an IP, etc.)
Trait Implementations§
Source§impl Debug for AxoupdateError
impl Debug for AxoupdateError
Source§impl Diagnostic for AxoupdateError
impl Diagnostic for AxoupdateError
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 code<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn code<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
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>
fn severity(&self) -> Option<Severity>
ReportHandlers to change the display format
of this diagnostic. Read moreSource§fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
fn url<'a>(&'a self) -> Option<Box<dyn Display + 'a>>
Diagnostic.Source§fn source_code(&self) -> Option<&dyn SourceCode>
fn source_code(&self) -> Option<&dyn SourceCode>
Diagnostic’s Diagnostic::labels to.Source§fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
fn labels(&self) -> Option<Box<dyn Iterator<Item = LabeledSpan> + '_>>
Diagnostic’s Diagnostic::source_codeDiagnostics.Source§fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
fn diagnostic_source(&self) -> Option<&dyn Diagnostic>
Source§impl Display for AxoupdateError
impl Display for AxoupdateError
Source§impl Error for AxoupdateError
impl Error for AxoupdateError
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 AxoupdateError
impl From<AxoassetError> for AxoupdateError
Source§fn from(source: AxoassetError) -> Self
fn from(source: AxoassetError) -> Self
Source§impl From<AxoprocessError> for AxoupdateError
impl From<AxoprocessError> for AxoupdateError
Source§fn from(source: AxoprocessError) -> Self
fn from(source: AxoprocessError) -> Self
Source§impl From<Error> for AxoupdateError
impl From<Error> for AxoupdateError
Source§impl From<Error> for AxoupdateError
impl From<Error> for AxoupdateError
Source§impl From<Error> for AxoupdateError
impl From<Error> for AxoupdateError
Source§impl From<FromPathBufError> for AxoupdateError
impl From<FromPathBufError> for AxoupdateError
Source§fn from(source: FromPathBufError) -> Self
fn from(source: FromPathBufError) -> Self
Source§impl From<GazenotError> for AxoupdateError
impl From<GazenotError> for AxoupdateError
Source§fn from(source: GazenotError) -> Self
fn from(source: GazenotError) -> Self
Source§impl From<GetHomeError> for AxoupdateError
impl From<GetHomeError> for AxoupdateError
Source§fn from(source: GetHomeError) -> Self
fn from(source: GetHomeError) -> Self
Source§impl From<ParseError> for AxoupdateError
impl From<ParseError> for AxoupdateError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl Freeze for AxoupdateError
impl !RefUnwindSafe for AxoupdateError
impl Send for AxoupdateError
impl Sync for AxoupdateError
impl Unpin for AxoupdateError
impl !UnwindSafe for AxoupdateError
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> 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.