Enum crossbundle_tools::error::Error[][src]

pub enum Error {
Show 15 variants CmdFailed(CommandStringString), CmdNotFound(String), InvalidProfile(String), InvalidInterfaceOrientation(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), Apple(AppleError), AnyhowError(Error), OtherError(Box<dyn Error>),
}
Expand description

Main error type.

Variants

CmdFailed(CommandStringString)

Tuple Fields

1: String
2: String

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

CmdNotFound(String)

Tuple Fields

0: String

Command {0} not found

InvalidProfile(String)

Tuple Fields

0: String

Invalid profile: {0}

InvalidInterfaceOrientation(String)

Tuple Fields

0: String

Invalid interface orientation: {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)

Tuple Fields

Path {0:?} doesn’t exist

FailedToFindCargoManifest(String)

Tuple Fields

0: String

Failed to find cargo manifest: {0}

FailedToChooseShellStringColor(String)

Tuple Fields

0: String

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

Io(Error)

Tuple Fields

0: Error

IO error

FsExtra(Error)

Tuple Fields

0: Error

FS Extra error

Zip(ZipError)

Tuple Fields

Zip error

Android(AndroidError)

Tuple Fields

Android error

Apple(AppleError)

Tuple Fields

Apple error

AnyhowError(Error)

Tuple Fields

0: Error

Anyhow error

OtherError(Box<dyn Error>)

Tuple Fields

0: Box<dyn Error>

Other error

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.

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.

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.