Enum wasm_opt::OptimizationError
source · pub enum OptimizationError {
ValidateWasmInput,
ValidateWasmOutput,
Read {
source: Box<dyn Error + Send + Sync + 'static>,
},
Write {
source: Box<dyn Error + Send + Sync + 'static>,
},
InvalidStdinPath,
}
Expand description
An error resulting from the OptimizationOptions::run
method.
Variants§
ValidateWasmInput
The input module did not validate.
ValidateWasmOutput
The output module did not validate.
Read
An error occurred while reading the input module.
Write
An error occurred while writing the output module.
InvalidStdinPath
The input file path represents stdin to Binaryen, but the API does not support reading stdin.
Trait Implementations§
source§impl Debug for OptimizationError
impl Debug for OptimizationError
source§impl Display for OptimizationError
impl Display for OptimizationError
source§impl Error for OptimizationError
impl Error for OptimizationError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<OptimizationError> for Error
impl From<OptimizationError> for Error
source§fn from(source: OptimizationError) -> Self
fn from(source: OptimizationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OptimizationError
impl !RefUnwindSafe for OptimizationError
impl Send for OptimizationError
impl Sync for OptimizationError
impl Unpin for OptimizationError
impl !UnwindSafe for OptimizationError
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