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
Encountered duplicate definitions for the same name.
Fields
import_name: ImportName
The duplicate import name of the definition.
MissingDefinition
Encountered when no definition for an import is found.
Fields
name: ImportName
The name of the import for which no definition was found.
ty: ExternType
The type of the import for which no definition has been found.
InvalidTypeDefinition
Encountered when a definition with invalid type is found.
Fields
name: ImportName
The name of the import for which no definition was found.
expected: ExternType
The expected import type.
found: ExternType
The found definition type.
FuncTypeMismatch
Fields
name: ImportName
The name of the import with the mismatched type.
InvalidTableSubtype
Fields
InvalidMemorySubtype
Encountered when a MemoryType
does not match the expected MemoryType
.
Fields
name: ImportName
The name of the import with the invalid MemoryType
.
ty: MemoryType
The MemoryType
that is supposed to be a subtype of other
.
other: MemoryType
The MemoryType
this is supposed to be a supertype of ty
.
GlobalTypeMismatch
Encountered when a GlobalType
does not match the expected GlobalType
.
Fields
name: ImportName
The name of the import with the mismatched type.
expected: GlobalType
The expected GlobalType
.
found: GlobalType
The mismatching GlobalType
found.
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 Freeze for LinkerError
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
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
.source§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
.source§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.source§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.