pub enum ExportError {
IncorrectGlobalIndex(u32, u32),
MutableGlobalExport(u32, u32),
ExportReferencesToImportFunction(u32, u32),
ExportReferencesToImportGlobal(u32, u32),
InvalidExportFnSignature(u32),
ExcessExport(u32),
RequiredExportNotFound,
}
Expand description
Export error in WASM module.
Variants§
IncorrectGlobalIndex(u32, u32)
Incorrect global export index. Can occur when export refers to not existing global index.
MutableGlobalExport(u32, u32)
Exporting mutable globals is restricted by the Gear protocol.
ExportReferencesToImportFunction(u32, u32)
Export references to an import function, which is not allowed.
ExportReferencesToImportGlobal(u32, u32)
Export references to an import global, which is not allowed.
InvalidExportFnSignature(u32)
The signature of an exported function is invalid.
ExcessExport(u32)
The provided code contains excess function export.
RequiredExportNotFound
The provided code doesn’t contain the required init
or handle
export function.
Trait Implementations§
Source§impl Debug for ExportError
impl Debug for ExportError
Source§impl Display for ExportError
impl Display for ExportError
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.
Auto Trait Implementations§
impl Freeze for ExportError
impl RefUnwindSafe for ExportError
impl Send for ExportError
impl Sync for ExportError
impl Unpin for ExportError
impl UnwindSafe for ExportError
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