Enum tauri_plugin_updater::Error
source · #[non_exhaustive]pub enum Error {
Show 20 variants
EmptyEndpoints,
Io(Error),
Semver(Error),
Serialization(Error),
ReleaseNotFound,
UnsupportedArch,
UnsupportedOs,
FailedToDetermineExtractPath,
UrlParse(ParseError),
Reqwest(Error),
TargetNotFound(String),
Network(String),
Minisign(Error),
Base64(DecodeError),
SignatureUtf8(String),
TempDirNotOnSameMountPoint,
BinaryNotFoundInArchive,
InvalidUpdaterFormat,
Http(Error),
Tauri(Error),
}
Expand description
All errors that can occur while running the updater.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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 on 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
InvalidUpdaterFormat
Http(Error)
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: 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
Converts to this type from the input type.
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe 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
Mutably borrows from an owned value. Read more