pub enum RustBuilderError {
CargoTomlNotFound {
path: PathBuf,
},
CargoTomlParseError {
path: PathBuf,
message: String,
},
BuildFailed {
code: i32,
stderr: String,
},
BinaryNotFound {
name: String,
},
ArtifactNotFound {
path: PathBuf,
},
CopyFailed {
message: String,
},
Io(Error),
PathNotFound {
path: PathBuf,
},
TomlError(Error),
InvalidConfig(String),
}Expand description
Errors that can occur during Rust building operations.
Variants§
CargoTomlNotFound
Cargo.toml not found starting from the given path
CargoTomlParseError
Failed to parse Cargo.toml
BuildFailed
Build command failed
BinaryNotFound
Binary not found in project
ArtifactNotFound
Artifact not found at expected path
CopyFailed
Failed to copy artifact
Io(Error)
IO error
PathNotFound
Path does not exist
TomlError(Error)
TOML parsing error
InvalidConfig(String)
Invalid configuration
Trait Implementations§
Source§impl Debug for RustBuilderError
impl Debug for RustBuilderError
Source§impl Display for RustBuilderError
impl Display for RustBuilderError
Source§impl Error for RustBuilderError
impl Error for RustBuilderError
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 RustBuilderError
impl From<Error> for RustBuilderError
Auto Trait Implementations§
impl Freeze for RustBuilderError
impl !RefUnwindSafe for RustBuilderError
impl Send for RustBuilderError
impl Sync for RustBuilderError
impl Unpin for RustBuilderError
impl UnsafeUnpin for RustBuilderError
impl !UnwindSafe for RustBuilderError
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