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
sourceimpl Debug for OptimizationError
impl Debug for OptimizationError
sourceimpl Display for OptimizationError
impl Display for OptimizationError
sourceimpl Error for OptimizationError
impl Error for OptimizationError
sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<OptimizationError> for Error
impl From<OptimizationError> for Error
sourcefn from(source: OptimizationError) -> Self
fn from(source: OptimizationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for OptimizationError
impl Send for OptimizationError
impl Sync for OptimizationError
impl Unpin for OptimizationError
impl !UnwindSafe for OptimizationError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more