pub enum BinaryenToolError {
ArchiveDownload {
status: String,
stderr: String,
},
ArchiveHashMismatch {
path: PathBuf,
actual: String,
expected: &'static str,
},
ArchiveExtraction {
status: String,
stderr: String,
},
ExecutableHashMismatch {
path: PathBuf,
actual: String,
expected: String,
},
Io {
operation: &'static str,
path: PathBuf,
source: Error,
},
MissingHome,
MissingOptimizer,
NotExecutable {
path: PathBuf,
},
TempDirectoryExhausted {
root: PathBuf,
},
UnsupportedPlatform {
os: &'static str,
arch: &'static str,
},
VersionMismatch {
path: PathBuf,
actual: String,
expected: &'static str,
},
VersionProcess {
path: PathBuf,
source: Error,
},
}Expand description
BinaryenToolError
Typed setup or admission failure for the mandatory release optimizer.
Variants§
ArchiveDownload
ArchiveHashMismatch
ArchiveExtraction
ExecutableHashMismatch
Io
MissingHome
MissingOptimizer
NotExecutable
TempDirectoryExhausted
UnsupportedPlatform
VersionMismatch
VersionProcess
Trait Implementations§
Source§impl Debug for BinaryenToolError
impl Debug for BinaryenToolError
Source§impl Display for BinaryenToolError
impl Display for BinaryenToolError
Source§impl Error for BinaryenToolError
impl Error for BinaryenToolError
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 BinaryenToolError
impl !UnwindSafe for BinaryenToolError
impl Freeze for BinaryenToolError
impl Send for BinaryenToolError
impl Sync for BinaryenToolError
impl Unpin for BinaryenToolError
impl UnsafeUnpin for BinaryenToolError
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