Enum tauri_bundler::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 26 variants BundlerError(Error), GlobError(GlobError), GlobPatternError(PatternError), IoError(Error), ImageError(ImageError), TomlError(Error), WalkdirError(Error), StripError(StripPrefixError), ConvertError(TryFromIntError), ZipError(ZipError), HandleBarsError(RenderError), JsonError(Error), RegexError(Error), HashError, ArchError(String), IconPathError, PathUtilError(String), ShellScriptError(String), GenericError(String), UnableToFindProject, Utf8(Utf8Error), SignToolNotFound, OpenRegistry(String), GetRegistryValue(String), UnsupportedBitness, Sign(String),
}
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.
BundlerError

Bundler error.

Tuple Fields of BundlerError

0: Error
GlobError

Failed to use glob pattern.

Tuple Fields of GlobError

0: GlobError
GlobPatternError

Invalid glob pattern.

Tuple Fields of GlobPatternError

0: PatternError
IoError

I/O error.

Tuple Fields of IoError

0: Error
ImageError

Image error.

Tuple Fields of ImageError

0: ImageError
TomlError

TOML error.

Tuple Fields of TomlError

0: Error
WalkdirError

Error walking directory.

Tuple Fields of WalkdirError

0: Error
StripError

Strip prefix error.

Tuple Fields of StripError

0: StripPrefixError
ConvertError

Number parse error.

Tuple Fields of ConvertError

0: TryFromIntError
ZipError

Zip error.

Tuple Fields of ZipError

0: ZipError
HandleBarsError

Handlebars template error.

Tuple Fields of HandleBarsError

0: RenderError
JsonError

JSON error.

Tuple Fields of JsonError

0: Error
RegexError

Regex error.

Tuple Fields of RegexError

0: Error
HashError

Failed to validate downloaded file hash.

ArchError

Unsupported architecture.

Tuple Fields of ArchError

0: String
IconPathError

Couldn’t find icons.

PathUtilError

Error on path util operation.

Tuple Fields of PathUtilError

0: String
ShellScriptError

Error on shell script.

Tuple Fields of ShellScriptError

0: String
GenericError

Generic error.

Tuple Fields of GenericError

0: String
UnableToFindProject

No bundled project found for the updater.

Utf8

String is not UTF-8.

Tuple Fields of Utf8

0: Utf8Error
SignToolNotFound

Windows SignTool not found.

OpenRegistry

Failed to open Windows registry.

Tuple Fields of OpenRegistry

0: String
GetRegistryValue

Failed to get registry value.

Tuple Fields of GetRegistryValue

0: String
UnsupportedBitness

Unsupported OS bitness.

Sign

Failed to sign application.

Tuple Fields of Sign

0: String

Trait Implementations

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

The lower-level source of this error, if any. Read more

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.