pub enum CrossBuildError {
Show 18 variants
InvalidTarget {
target: String,
reason: String,
},
ManifestNotFound {
searched_from: PathBuf,
},
ManifestNotCargoToml {
path: PathBuf,
},
CargoUnavailable {
program: String,
},
HostUnsupported {
host: String,
target: String,
},
ProviderFailed {
provider: String,
reason: String,
},
ProviderNotFound {
provider_type: String,
target: String,
},
BuildFailed {
command: String,
exit_code: Option<i32>,
},
Configuration {
message: String,
},
Io {
path: Option<PathBuf>,
source: Error,
},
ToolNotFound {
tool: String,
},
SysrootNotNeeded,
SysrootNotFound {
target: String,
},
ChecksumMismatch {
url: String,
expected: String,
actual: String,
},
DownloadFailed {
url: String,
reason: String,
},
LockfileCorrupted {
reason: String,
},
CacheError {
reason: String,
},
WhichError {
source: Error,
},
}Expand description
Errors produced by cargo-crossbuild.
Variants§
InvalidTarget
ManifestNotFound
ManifestNotCargoToml
HostUnsupported
ProviderFailed
ProviderNotFound
BuildFailed
Configuration
Io
ToolNotFound
SysrootNotNeeded
SysrootNotFound
ChecksumMismatch
DownloadFailed
LockfileCorrupted
CacheError
WhichError
Implementations§
Source§impl CrossBuildError
impl CrossBuildError
pub fn configuration(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Debug for CrossBuildError
impl Debug for CrossBuildError
Source§impl Display for CrossBuildError
impl Display for CrossBuildError
Source§impl Error for CrossBuildError
impl Error for CrossBuildError
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 CrossBuildError
impl From<Error> for CrossBuildError
Source§impl From<Error> for CrossBuildError
impl From<Error> for CrossBuildError
Source§impl From<HostDetectError> for CrossBuildError
impl From<HostDetectError> for CrossBuildError
Source§fn from(e: HostDetectError) -> Self
fn from(e: HostDetectError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CrossBuildError
impl !UnwindSafe for CrossBuildError
impl Freeze for CrossBuildError
impl Send for CrossBuildError
impl Sync for CrossBuildError
impl Unpin for CrossBuildError
impl UnsafeUnpin for CrossBuildError
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more