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 error.
Tuple Fields of Command
0: String
The extract archive error.
Tuple Fields of Extract
0: String
The path operation error.
Tuple Fields of Path
0: String
The path StripPrefixError error.
Tuple Fields of PathPrefix
Error showing the dialog.
Tuple Fields of Dialog
0: String
The dialog operation was cancelled by the user.
This is supported on crate feature
reqwest-client
only.The network error.
Tuple Fields of Network
0: Error
HTTP method error.
Tuple Fields of HttpMethod
This is supported on crate feature
reqwest-client
only.Invalid HTTP header value.
Tuple Fields of HttpHeaderValue
Invalid HTTP header value.
Tuple Fields of HttpHeader
Failed to serialize header value as string.
Tuple Fields of Utf8
HTTP form to must be an object.
Semver error.
Tuple Fields of Semver
0: Error
JSON error.
Tuple Fields of Json
0: Error
Bincode error.
IO error.
Tuple Fields of Io
0: Error
Ignore error.
Tuple Fields of Ignore
0: Error
ZIP error.
Tuple Fields of Zip
0: ZipError
Notification error.
Tuple Fields of Notification
0: Error
failed to detect the current platform.
Tuple Fields of FailedToDetectPlatform
0: String
This is supported on crate feature
cli
only.CLI argument parsing error.
Tuple Fields of ParseCliArguments
0: Error
Shell error.
Tuple Fields of Shell
0: String
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.