pub enum CodeError {
Validation(BinaryReaderError),
Codec(CodecError),
Section(SectionError),
Memory(MemoryError),
StackEnd(StackEndError),
DataSection(DataSectionError),
TableSection(TableSectionError),
Export(ExportError),
Import(ImportError),
Instrumentation(InstrumentationError),
}
Expand description
Describes why the code is not valid Gear program.
Variants§
Validation(BinaryReaderError)
Validation by wasmparser failed.
Codec(CodecError)
Module encode/decode error.
Section(SectionError)
The provided code contains section error.
Memory(MemoryError)
The provided code contains memory error.
StackEnd(StackEndError)
The provided code contains stack end error.
DataSection(DataSectionError)
The provided code contains data section error.
TableSection(TableSectionError)
The provided code contains table section error.
Export(ExportError)
The provided code contains export error.
Import(ImportError)
The provided code contains import error.
Instrumentation(InstrumentationError)
Error occurred during instrumentation WASM module.
Trait Implementations§
Source§impl From<BinaryReaderError> for CodeError
impl From<BinaryReaderError> for CodeError
Source§fn from(original: BinaryReaderError) -> CodeError
fn from(original: BinaryReaderError) -> CodeError
Converts to this type from the input type.
Source§impl From<CodecError> for CodeError
impl From<CodecError> for CodeError
Source§fn from(original: CodecError) -> CodeError
fn from(original: CodecError) -> CodeError
Converts to this type from the input type.
Source§impl From<DataSectionError> for CodeError
impl From<DataSectionError> for CodeError
Source§fn from(original: DataSectionError) -> CodeError
fn from(original: DataSectionError) -> CodeError
Converts to this type from the input type.
Source§impl From<ExportError> for CodeError
impl From<ExportError> for CodeError
Source§fn from(original: ExportError) -> CodeError
fn from(original: ExportError) -> CodeError
Converts to this type from the input type.
Source§impl From<ImportError> for CodeError
impl From<ImportError> for CodeError
Source§fn from(original: ImportError) -> CodeError
fn from(original: ImportError) -> CodeError
Converts to this type from the input type.
Source§impl From<InstrumentationError> for CodeError
impl From<InstrumentationError> for CodeError
Source§fn from(original: InstrumentationError) -> CodeError
fn from(original: InstrumentationError) -> CodeError
Converts to this type from the input type.
Source§impl From<MemoryError> for CodeError
impl From<MemoryError> for CodeError
Source§fn from(original: MemoryError) -> CodeError
fn from(original: MemoryError) -> CodeError
Converts to this type from the input type.
Source§impl From<SectionError> for CodeError
impl From<SectionError> for CodeError
Source§fn from(original: SectionError) -> CodeError
fn from(original: SectionError) -> CodeError
Converts to this type from the input type.
Source§impl From<StackEndError> for CodeError
impl From<StackEndError> for CodeError
Source§fn from(original: StackEndError) -> CodeError
fn from(original: StackEndError) -> CodeError
Converts to this type from the input type.
Source§impl From<TableSectionError> for CodeError
impl From<TableSectionError> for CodeError
Source§fn from(original: TableSectionError) -> CodeError
fn from(original: TableSectionError) -> CodeError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CodeError
impl RefUnwindSafe for CodeError
impl Send for CodeError
impl Sync for CodeError
impl Unpin for CodeError
impl UnwindSafe for CodeError
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