pub enum Error {
Show 33 variants
InvalidMagic,
InvalidVersion,
MalformedUtf8String(Utf8Error),
Eof,
InvalidSectionType(u8),
SectionOutOfOrder(SectionTy),
InvalidNumType,
InvalidVecType,
InvalidFuncType,
InvalidRefType,
InvalidValType,
InvalidExportDesc(u8),
InvalidImportDesc(u8),
ExprMissingEnd,
InvalidInstr(u8),
InvalidMultiByteInstr(u8, u8),
EndInvalidValueStack,
InvalidLocalIdx,
InvalidValidationStackValType(Option<ValType>),
ExpectedAnOperand,
InvalidLimitsType(u8),
InvalidMutType(u8),
MoreThanOneMemory,
InvalidLimit,
MemSizeTooBig,
InvalidGlobalIdx(usize),
GlobalIsConst,
RuntimeError(RuntimeError),
FoundLabel(LabelKind),
MemoryIsNotDefined(usize),
ErroneousAlignment(u32, u32),
NoDataSegments,
DataSegmentNotFound(usize),
}
Variants§
InvalidMagic
The magic number at the very start of the given WASM file is invalid.
InvalidVersion
MalformedUtf8String(Utf8Error)
Eof
InvalidSectionType(u8)
SectionOutOfOrder(SectionTy)
InvalidNumType
InvalidVecType
InvalidFuncType
InvalidRefType
InvalidValType
InvalidExportDesc(u8)
InvalidImportDesc(u8)
ExprMissingEnd
InvalidInstr(u8)
InvalidMultiByteInstr(u8, u8)
EndInvalidValueStack
InvalidLocalIdx
InvalidValidationStackValType(Option<ValType>)
ExpectedAnOperand
InvalidLimitsType(u8)
InvalidMutType(u8)
MoreThanOneMemory
InvalidLimit
MemSizeTooBig
InvalidGlobalIdx(usize)
GlobalIsConst
RuntimeError(RuntimeError)
FoundLabel(LabelKind)
MemoryIsNotDefined(usize)
ErroneousAlignment(u32, u32)
NoDataSegments
DataSegmentNotFound(usize)
Trait Implementations§
source§impl From<RuntimeError> for Error
impl From<RuntimeError> for Error
source§fn from(value: RuntimeError) -> Self
fn from(value: RuntimeError) -> Self
Converts to this type from the input type.
source§impl PartialEq for Error
impl PartialEq for Error
impl Eq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
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