pub enum ImportError {
UnknownImport(u32),
DuplicateImport(u32),
InvalidImportFnSignature(u32),
UnexpectedImportKind {
kind: &'static &'static str,
index: u32,
},
}
Expand description
Import error in WASM module.
Variants§
UnknownImport(u32)
The imported function is not supported by the Gear protocol.
DuplicateImport(u32)
The imported function is declared multiple times.
InvalidImportFnSignature(u32)
The signature of an imported function is invalid.
UnexpectedImportKind
Unexpected import kind.
Trait Implementations§
Source§impl Debug for ImportError
impl Debug for ImportError
Source§impl Display for ImportError
impl Display for ImportError
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.
Auto Trait Implementations§
impl Freeze for ImportError
impl RefUnwindSafe for ImportError
impl Send for ImportError
impl Sync for ImportError
impl Unpin for ImportError
impl UnwindSafe for ImportError
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