pub enum WasmBinaryError {
TooShort,
InvalidMagic,
UnsupportedVersion,
}Expand description
Error returned when a WebAssembly binary header is not recognized.
Variants§
TooShort
Fewer than eight bytes were provided.
InvalidMagic
The first four bytes were not the WebAssembly magic bytes.
UnsupportedVersion
The version bytes do not describe WebAssembly version 1.
Trait Implementations§
Source§impl Clone for WasmBinaryError
impl Clone for WasmBinaryError
Source§fn clone(&self) -> WasmBinaryError
fn clone(&self) -> WasmBinaryError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WasmBinaryError
impl Debug for WasmBinaryError
Source§impl Display for WasmBinaryError
impl Display for WasmBinaryError
Source§impl Error for WasmBinaryError
impl Error for WasmBinaryError
1.30.0 · 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 Hash for WasmBinaryError
impl Hash for WasmBinaryError
Source§impl Ord for WasmBinaryError
impl Ord for WasmBinaryError
Source§fn cmp(&self, other: &WasmBinaryError) -> Ordering
fn cmp(&self, other: &WasmBinaryError) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for WasmBinaryError
impl PartialEq for WasmBinaryError
Source§fn eq(&self, other: &WasmBinaryError) -> bool
fn eq(&self, other: &WasmBinaryError) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for WasmBinaryError
impl PartialOrd for WasmBinaryError
impl Copy for WasmBinaryError
impl Eq for WasmBinaryError
impl StructuralPartialEq for WasmBinaryError
Auto Trait Implementations§
impl Freeze for WasmBinaryError
impl RefUnwindSafe for WasmBinaryError
impl Send for WasmBinaryError
impl Sync for WasmBinaryError
impl Unpin for WasmBinaryError
impl UnsafeUnpin for WasmBinaryError
impl UnwindSafe for WasmBinaryError
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