pub enum BuildError {
Show 17 variants
ConfigureFailed {
package: String,
},
ConfigureNotFound {
package: String,
},
MakeFailed {
package: String,
},
MakeInstallFailed {
package: String,
},
CmakeConfigureFailed {
package: String,
},
CmakeBuildFailed {
package: String,
},
CmakeInstallFailed {
package: String,
},
MesonConfigureFailed {
package: String,
},
MesonBuildFailed {
package: String,
},
CargoBuildFailed {
package: String,
},
MesonCompileFailed {
package: String,
},
MesonInstallFailed {
package: String,
},
UnknownBuildSystem {
package: String,
},
DownloadFailed {
package: String,
reason: String,
},
ExtractionFailed {
package: String,
reason: String,
},
SourceDirectoryNotFound {
package: String,
},
CompilerValidationFailed {
reason: String,
},
}Expand description
Specific build errors with context
Variants§
ConfigureFailed
ConfigureNotFound
MakeFailed
MakeInstallFailed
CmakeConfigureFailed
CmakeBuildFailed
CmakeInstallFailed
MesonConfigureFailed
MesonBuildFailed
CargoBuildFailed
MesonCompileFailed
MesonInstallFailed
UnknownBuildSystem
DownloadFailed
ExtractionFailed
SourceDirectoryNotFound
CompilerValidationFailed
Implementations§
Source§impl BuildError
impl BuildError
Sourcepub fn configure_failed(package: &str) -> Self
pub fn configure_failed(package: &str) -> Self
Create a ConfigureFailed error
Sourcepub fn make_failed(package: &str) -> Self
pub fn make_failed(package: &str) -> Self
Create a MakeFailed error
Sourcepub fn make_install_failed(package: &str) -> Self
pub fn make_install_failed(package: &str) -> Self
Create a MakeInstallFailed error
Sourcepub fn unknown_build_system(package: &str) -> Self
pub fn unknown_build_system(package: &str) -> Self
Create a UnknownBuildSystem error
Trait Implementations§
Source§impl Debug for BuildError
impl Debug for BuildError
Source§impl Display for BuildError
impl Display for BuildError
Source§impl Error for BuildError
impl Error for BuildError
1.30.0 · 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<BuildError> for Error
impl From<BuildError> for Error
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BuildError
impl RefUnwindSafe for BuildError
impl Send for BuildError
impl Sync for BuildError
impl Unpin for BuildError
impl UnwindSafe for BuildError
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.