#[non_exhaustive]pub enum Error {
Show 31 variants
EmptyEndpoints,
Io(Error),
Semver(Error),
Serialization(Error),
ReleaseNotFound,
UnsupportedArch,
UnsupportedOs,
FailedToDetermineExtractPath,
UrlParse(ParseError),
Reqwest(Error),
TargetNotFound(String),
TargetsNotFound(Vec<String>),
Network(String),
Minisign(Error),
Base64(DecodeError),
SignatureUtf8(String),
TempDirNotOnSameMountPoint,
BinaryNotFoundInArchive,
TempDirNotFound,
AuthenticationFailed,
DebInstallFailed,
PackageInstallFailed,
InvalidUpdaterFormat,
Http(Error),
InvalidHeaderValue(InvalidHeaderValue),
InvalidHeaderName(InvalidHeaderName),
FormatDate,
InsecureTransportProtocol,
SignedVersionMismatch {
signed: String,
announced: String,
},
MissingSignedVersion,
Tauri(Error),
}Expand description
All errors that can occur while running the updater.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
EmptyEndpoints
Endpoints are not sent.
Io(Error)
IO errors.
Semver(Error)
Semver errors.
Serialization(Error)
Serialization errors.
ReleaseNotFound
Could not fetch a valid response from the server.
UnsupportedArch
Unsupported app architecture.
UnsupportedOs
Operating system is not supported.
FailedToDetermineExtractPath
Failed to determine updater package extract path
UrlParse(ParseError)
Url parsing errors.
Reqwest(Error)
reqwest crate errors.
TargetNotFound(String)
The platform was not found in the updater JSON response.
TargetsNotFound(Vec<String>)
Neither the platform nor the fallback platform was found in the updater JSON response.
Network(String)
Download failed
Minisign(Error)
minisign_verify errors.
Base64(DecodeError)
base64 errors.
SignatureUtf8(String)
UTF8 Errors in signature.
TempDirNotOnSameMountPoint
Temp dir is not on same mount mount. This prevents our updater to rename the AppImage to a temp file.
BinaryNotFoundInArchive
TempDirNotFound
AuthenticationFailed
DebInstallFailed
PackageInstallFailed
InvalidUpdaterFormat
Http(Error)
InvalidHeaderValue(InvalidHeaderValue)
InvalidHeaderName(InvalidHeaderName)
FormatDate
InsecureTransportProtocol
The configured updater endpoint must use a secure protocol like https
SignedVersionMismatch
The version the artifact was signed for does not match the version announced by the update endpoint.
Fields
MissingSignedVersion
requireSignedVersion is enabled but the signature does not carry a version.
Tauri(Error)
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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
use the Display impl or to_string()
Source§impl From<DecodeError> for Error
impl From<DecodeError> for Error
Source§fn from(source: DecodeError) -> Self
fn from(source: DecodeError) -> Self
Source§impl From<InvalidHeaderName> for Error
impl From<InvalidHeaderName> for Error
Source§fn from(source: InvalidHeaderName) -> Self
fn from(source: InvalidHeaderName) -> Self
Source§impl From<InvalidHeaderValue> for Error
impl From<InvalidHeaderValue> for Error
Source§fn from(source: InvalidHeaderValue) -> Self
fn from(source: InvalidHeaderValue) -> Self
Source§impl From<ParseError> for Error
impl From<ParseError> for Error
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
impl<T> ErasedDestructor for Twhere
T: 'static,
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> IpcResponse for Twhere
T: Serialize,
impl<T> IpcResponse for Twhere
T: Serialize,
impl<T> MaybeSendSync for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> Serialize for T
impl<T> Serialize for T
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<(), Error>
fn do_erased_serialize( &self, serializer: &mut dyn Serializer, ) -> Result<(), ErrorImpl>
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.