Enum crossbundle_tools::error::Error
source · [−]pub enum Error {
Show 16 variants
CmdFailed(Command, String, String),
CmdNotFound(String),
CopyToFileFailed {
path: PathBuf,
cause: Error,
},
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),
Apple(AppleError),
AnyhowError(Error),
OtherError(Box<dyn Error>),
}
Expand description
Main error type.
Variants
CmdFailed(Command, String, String)
Command ‘{0:?}’ had a non-zero exit code. Stdout: {1} Stderr: {2}
CmdNotFound(String)
Command {0} not found
CopyToFileFailed
Failed to copy file in specified path {path}
cause of {cause}
FailedToFindManifest(PathBuf)
Failed to find the manifest in path: {0}
InvalidProfile(String)
Invalid profile: {0}
ToolchainBinaryNotFound
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:?}
Apple(AppleError)
Apple error: {0:?}
AnyhowError(Error)
Anyhow error: {0:?}
OtherError(Box<dyn Error>)
Other error: {0:?}
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<AndroidError> for Error
impl From<AndroidError> for Error
sourcefn from(source: AndroidError) -> Self
fn from(source: AndroidError) -> Self
Converts to this type from the input type.
sourceimpl From<AppleError> for Error
impl From<AppleError> for Error
sourcefn from(source: AppleError) -> Self
fn from(source: AppleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !Send for Error
impl !Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more