#[non_exhaustive]pub enum WasmBuildError {
InvalidSpec {
message: String,
},
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
CommandSpawn {
phase: WasmBuildPhase,
program: OsString,
source: Error,
},
CommandFailed {
phase: WasmBuildPhase,
status: ExitStatus,
stdout: String,
stderr: String,
},
InvalidMetadata {
message: String,
},
MissingArtifacts {
paths: Vec<PathBuf>,
},
InputsChangedDuringBuild {
before: InputDigest,
after: InputDigest,
},
}Expand description
Structured failure from a cacheable Wasm build.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
InvalidSpec
The caller supplied an incomplete or inconsistent specification.
Io
A filesystem operation failed.
CommandSpawn
An external command could not be launched.
CommandFailed
An external command completed unsuccessfully.
InvalidMetadata
Cargo metadata did not contain the expected package graph.
MissingArtifacts
Cargo succeeded without producing every declared Wasm artifact.
InputsChangedDuringBuild
Declared inputs changed while Cargo was building.
Trait Implementations§
Source§impl Debug for WasmBuildError
impl Debug for WasmBuildError
Source§impl Display for WasmBuildError
impl Display for WasmBuildError
Source§impl Error for WasmBuildError
impl Error for WasmBuildError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for WasmBuildError
impl !UnwindSafe for WasmBuildError
impl Freeze for WasmBuildError
impl Send for WasmBuildError
impl Sync for WasmBuildError
impl Unpin for WasmBuildError
impl UnsafeUnpin for WasmBuildError
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