Enum tauri::api::Error[][src]

#[non_exhaustive]
pub enum Error {
Show 22 variants Command(String), Extract(String), Path(String), PathPrefix(StripPrefixError), Dialog(String), DialogCancelled, Network(Error), HttpMethod(InvalidMethod), HttpHeaderValue(InvalidHeaderValue), HttpHeader(InvalidHeaderName), Utf8(FromUtf8Error), InvalidHttpForm, Semver(Error), Json(Error), Bincode(Box<ErrorKind>), Io(Error), Ignore(Error), Zip(ZipError), Notification(Error), FailedToDetectPlatform(String), ParseCliArguments(Error), Shell(String),
}
Expand description

The error types.

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.
Command

Command error.

Tuple Fields of Command

0: String
Extract

The extract archive error.

Tuple Fields of Extract

0: String
Path

The path operation error.

Tuple Fields of Path

0: String
PathPrefix

The path StripPrefixError error.

Tuple Fields of PathPrefix

0: StripPrefixError
Dialog

Error showing the dialog.

Tuple Fields of Dialog

0: String
DialogCancelled

The dialog operation was cancelled by the user.

Network
This is supported on crate feature reqwest-client only.

The network error.

Tuple Fields of Network

0: Error
HttpMethod

HTTP method error.

Tuple Fields of HttpMethod

0: InvalidMethod
HttpHeaderValue
This is supported on crate feature reqwest-client only.

Invalid HTTP header value.

Tuple Fields of HttpHeaderValue

0: InvalidHeaderValue
HttpHeader

Invalid HTTP header value.

Tuple Fields of HttpHeader

0: InvalidHeaderName
Utf8

Failed to serialize header value as string.

Tuple Fields of Utf8

0: FromUtf8Error
InvalidHttpForm

HTTP form to must be an object.

Semver

Semver error.

Tuple Fields of Semver

0: Error
Json

JSON error.

Tuple Fields of Json

0: Error
Bincode

Bincode error.

Tuple Fields of Bincode

0: Box<ErrorKind>
Io

IO error.

Tuple Fields of Io

0: Error
Ignore

Ignore error.

Tuple Fields of Ignore

0: Error
Zip

ZIP error.

Tuple Fields of Zip

0: ZipError
Notification

Notification error.

Tuple Fields of Notification

0: Error
FailedToDetectPlatform

failed to detect the current platform.

Tuple Fields of FailedToDetectPlatform

0: String
ParseCliArguments
This is supported on crate feature cli only.

CLI argument parsing error.

Tuple Fields of ParseCliArguments

0: Error
Shell

Shell error.

Tuple Fields of Shell

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.

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.