pub enum BuildError {
Io(Error),
ProcessFailed {
cmd: String,
status: ExitStatus,
},
MissingField(&'static str),
InvalidConfig(String),
DockerNotFound,
DockerNotRunning,
DockerBuildFailed,
LockfileNotReady {
project: String,
toolchain: &'static str,
},
}Expand description
Unified error type for build and packaging operations.
Variants§
Io(Error)
Wraps filesystem and process-spawn I/O errors.
ProcessFailed
Reports external command failures with their final exit status.
MissingField(&'static str)
Signals that required metadata was not available.
InvalidConfig(String)
Signals invalid user inputs or metadata content.
DockerNotFound
Docker CLI was not found on PATH.
DockerNotRunning
Docker daemon is not running or not reachable.
DockerBuildFailed
docker build failed while building the reproducible build image.
LockfileNotReady
Guest project is missing a Cargo.lock or it was not generated with the container toolchain.
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
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 BuildError
impl From<Error> for BuildError
Source§impl From<ManifestError> for BuildError
impl From<ManifestError> for BuildError
Source§fn from(err: ManifestError) -> Self
fn from(err: ManifestError) -> 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