pub enum Error {
Show 19 variants CmdFailed(CommandStringString), CmdNotFound(String), CopyToFileFailed { path: PathBuf, cause: Error, }, WidthAndHeightDifSizes, IconsAlreadyExist, FailedToFindManifest(PathBuf), InvalidProfile(String), ToolchainBinaryNotFound { toolchain_path: PathBuf, gnu_bin: String, llvm_bin: String, }, PathNotFound(PathBuf), FailedToFindCargoManifest(String), FailedToChooseShellStringColor(String), Io(Error), FsExtra(Error), Zip(ZipError), Android(AndroidError), ImageError(ImageError), Apple(AppleError), AnyhowError(Error), OtherError(Box<dyn Error>),
}
Expand description

Main error type.

Variants

CmdFailed(CommandStringString)

Command ‘{0:?}’ had a non-zero exit code. Stdout: {1} Stderr: {2}

CmdNotFound(String)

Command {0} not found

CopyToFileFailed

Fields

path: PathBuf
cause: Error

Failed to copy file in specified path {path} cause of {cause}

WidthAndHeightDifSizes

Width and height of the icon have different sizes. Choose another image

IconsAlreadyExist

Icons already exist. Use overwrite flag

FailedToFindManifest(PathBuf)

Failed to find the manifest in path: {0}

InvalidProfile(String)

Invalid profile: {0}

ToolchainBinaryNotFound

Fields

toolchain_path: PathBuf
gnu_bin: String
llvm_bin: String

GNU toolchain binary {gnu_bin} nor LLVM toolchain binary {llvm_bin} found in {toolchain_path:?}

PathNotFound(PathBuf)

Path {0:?} doesn’t exist

FailedToFindCargoManifest(String)

Failed to find cargo manifest: {0}

FailedToChooseShellStringColor(String)

Failed to choose shell string color. Argument for –color must be auto, always, or never, but found {}

Io(Error)

IO error: {0:?}

FsExtra(Error)

FS Extra error: {0:?}

Zip(ZipError)

Zip error: {0:?}

Android(AndroidError)

Android error: {0:?}

ImageError(ImageError)

Image crate error: {0:?}

Apple(AppleError)

Apple error: {0:?}

AnyhowError(Error)

Anyhow error: {0:?}

OtherError(Box<dyn Error>)

Other error: {0:?}

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

👎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

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

Provides type based access to context intended for error reports. Read more

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

Converts to this type from the input type.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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

Data providers should implement this method to provide all values they are able to provide by using demand. Read more

Should always be Self

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.