Enum soroban_wasmi::errors::LinkerError
source · pub enum LinkerError {
DuplicateDefinition {
import_name: ImportName,
},
MissingDefinition {
name: ImportName,
ty: ExternType,
},
InvalidTypeDefinition {
name: ImportName,
expected: ExternType,
found: ExternType,
},
FuncTypeMismatch {
name: ImportName,
expected: FuncType,
found: FuncType,
},
InvalidTableSubtype {
name: ImportName,
ty: TableType,
other: TableType,
},
InvalidMemorySubtype {
name: ImportName,
ty: MemoryType,
other: MemoryType,
},
GlobalTypeMismatch {
name: ImportName,
expected: GlobalType,
found: GlobalType,
},
}Expand description
An error that may occur upon operating with Linker instances.
Variants§
DuplicateDefinition
Fields
import_name: ImportNameThe duplicate import name of the definition.
Encountered duplicate definitions for the same name.
MissingDefinition
Fields
name: ImportNameThe name of the import for which no definition was found.
ty: ExternTypeThe type of the import for which no definition has been found.
Encountered when no definition for an import is found.
InvalidTypeDefinition
Fields
name: ImportNameThe name of the import for which no definition was found.
expected: ExternTypeThe expected import type.
found: ExternTypeThe found definition type.
Encountered when a definition with invalid type is found.
FuncTypeMismatch
Fields
name: ImportNameThe name of the import with the mismatched type.
InvalidTableSubtype
Fields
InvalidMemorySubtype
Fields
name: ImportNameThe name of the import with the invalid MemoryType.
ty: MemoryTypeThe MemoryType that is supposed to be a subtype of other.
other: MemoryTypeThe MemoryType this is supposed to be a supertype of ty.
Encountered when a MemoryType does not match the expected MemoryType.
GlobalTypeMismatch
Fields
name: ImportNameThe name of the import with the mismatched type.
expected: GlobalTypeThe expected GlobalType.
found: GlobalTypeThe mismatching GlobalType found.
Encountered when a GlobalType does not match the expected GlobalType.
Trait Implementations§
source§impl Debug for LinkerError
impl Debug for LinkerError
source§impl Display for LinkerError
impl Display for LinkerError
source§impl Error for LinkerError
impl Error for LinkerError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<LinkerError> for Error
impl From<LinkerError> for Error
source§fn from(error: LinkerError) -> Self
fn from(error: LinkerError) -> Self
Auto Trait Implementations§
impl RefUnwindSafe for LinkerError
impl Send for LinkerError
impl Sync for LinkerError
impl Unpin for LinkerError
impl UnwindSafe for LinkerError
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere T: Any,
§fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any, Global>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.