#[non_exhaustive]pub enum Error {
Show 29 variants
Resource(Error),
BundlerError(Error),
IoError(Error),
ImageError(ImageError),
WalkdirError(Error),
StripError(StripPrefixError),
ConvertError(TryFromIntError),
ZipError(ZipError),
HexError(FromHexError),
HandleBarsError(RenderError),
JsonError(Error),
HttpError(Box<Error>),
UrlParse(ParseError),
HashError,
ArchError(String),
IconPathError,
BackgroundPathError,
PathUtilError(String),
ShellScriptError(String),
GenericError(String),
UnableToFindProject,
Utf8(Utf8Error),
SignToolNotFound,
OpenRegistry(String),
GetRegistryValue(String),
FailedToEnumerateRegKeys,
UnsupportedBitness,
Sign(String),
RpmError(Error),
}
Expand description
Errors returned by the bundler.
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.
Resource(Error)
Error running tauri_utils API.
BundlerError(Error)
Bundler error.
IoError(Error)
I/O error.
ImageError(ImageError)
Image error.
WalkdirError(Error)
Error walking directory.
StripError(StripPrefixError)
Strip prefix error.
ConvertError(TryFromIntError)
Number parse error.
ZipError(ZipError)
Zip error.
HexError(FromHexError)
Hex error.
HandleBarsError(RenderError)
Handlebars template error.
JsonError(Error)
JSON error.
HttpError(Box<Error>)
Failed to perform HTTP request.
UrlParse(ParseError)
Failed to parse the URL
HashError
Failed to validate downloaded file hash.
ArchError(String)
Unsupported architecture.
IconPathError
Couldn’t find icons.
BackgroundPathError
Couldn’t find background file.
PathUtilError(String)
Error on path util operation.
ShellScriptError(String)
Error on shell script.
GenericError(String)
Generic error.
UnableToFindProject
No bundled project found for the updater.
Utf8(Utf8Error)
String is not UTF-8.
SignToolNotFound
Windows SignTool not found.
OpenRegistry(String)
Failed to open Windows registry.
GetRegistryValue(String)
Failed to get registry value.
FailedToEnumerateRegKeys
Failed to enumerate registry keys.
UnsupportedBitness
Unsupported OS bitness.
Sign(String)
Failed to sign application.
RpmError(Error)
Rpm 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<FromHexError> for Error
impl From<FromHexError> for Error
Source§fn from(source: FromHexError) -> Self
fn from(source: FromHexError) -> Self
Converts to this type from the input type.
Source§impl From<ImageError> for Error
impl From<ImageError> for Error
Source§fn from(source: ImageError) -> Self
fn from(source: ImageError) -> 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.
Source§impl From<RenderError> for Error
impl From<RenderError> for Error
Source§fn from(source: RenderError) -> Self
fn from(source: RenderError) -> Self
Converts to this type from the input type.
Source§impl From<StripPrefixError> for Error
impl From<StripPrefixError> for Error
Source§fn from(source: StripPrefixError) -> Self
fn from(source: StripPrefixError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> 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
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>
Converts
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>
Converts
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 more