pub enum CrossError {
Show 32 variants
InvalidArgument(String),
MissingValue(String),
UnknownOption(String),
TargetNotFound {
target: String,
},
UnsupportedTarget(String),
UnsupportedGlibcVersion {
version: String,
supported: String,
},
UnsupportedIphoneSdkVersion {
version: String,
supported: String,
},
UnsupportedMacosSdkVersion {
version: String,
supported: String,
},
UnsupportedFreebsdVersion {
version: String,
supported: String,
},
DownloadFailed(String),
HttpError(Error),
IoError {
message: String,
source: Error,
},
ProgramNotFound {
program: String,
},
CommandExecutionFailed {
command: String,
reason: String,
},
ExtractionFailed(String),
UnsupportedArchiveFormat(String),
CompilerNotFound {
path: PathBuf,
},
SdkNotFound {
path: PathBuf,
},
SdkPathNotExist {
path: PathBuf,
},
CommandFailed {
command: String,
},
TargetInstallFailed {
target: String,
},
BuildStdRequired {
target: String,
},
CrossCompilationNotSupported {
target_os: String,
host_os: String,
},
UnsupportedArchitecture {
arch: String,
os: String,
},
EnvError(String),
NoMatchingTargets {
pattern: String,
},
InvalidTargetTriple {
target: String,
char: char,
},
CargoFailed {
code: i32,
},
JsonError(Error),
RegexError(Error),
Other(String),
ClapError(String),
}Expand description
Main error type for cargo-cross
Variants§
InvalidArgument(String)
MissingValue(String)
UnknownOption(String)
TargetNotFound
UnsupportedTarget(String)
UnsupportedGlibcVersion
UnsupportedIphoneSdkVersion
UnsupportedMacosSdkVersion
UnsupportedFreebsdVersion
DownloadFailed(String)
HttpError(Error)
IoError
ProgramNotFound
CommandExecutionFailed
ExtractionFailed(String)
UnsupportedArchiveFormat(String)
CompilerNotFound
SdkNotFound
SdkPathNotExist
CommandFailed
TargetInstallFailed
BuildStdRequired
CrossCompilationNotSupported
UnsupportedArchitecture
EnvError(String)
NoMatchingTargets
InvalidTargetTriple
CargoFailed
JsonError(Error)
RegexError(Error)
Other(String)
ClapError(String)
Trait Implementations§
Source§impl Debug for CrossError
impl Debug for CrossError
Source§impl Display for CrossError
impl Display for CrossError
Source§impl Error for CrossError
impl Error for CrossError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<Error> for CrossError
impl From<Error> for CrossError
Source§impl From<Error> for CrossError
impl From<Error> for CrossError
Source§impl From<Error> for CrossError
impl From<Error> for CrossError
Auto Trait Implementations§
impl Freeze for CrossError
impl !RefUnwindSafe for CrossError
impl Send for CrossError
impl Sync for CrossError
impl Unpin for CrossError
impl !UnwindSafe for CrossError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.