pub enum AllocatableError {
MemoryIsMissing {
memory_index: usize,
},
AllocateFuncIsMissing {
function_index: u32,
},
AllocateCallFailed {
reason: Error,
},
AllocateFuncIncompatibleSignature,
AllocateFuncIncompatibleOutput,
UserDefinedError(String),
}Variants§
MemoryIsMissing
The memory doesn’t exist.
AllocateFuncIsMissing
The local or import function doesn’t exist.
AllocateCallFailed
Failed to call a allocate function.
AllocateFuncIncompatibleSignature
Allocate input types doesn’t match with needed.
AllocateFuncIncompatibleOutput
Allocate output types doesn’t match with needed.
UserDefinedError(String)
User defined error.
Trait Implementations§
Source§impl Debug for AllocatableError
impl Debug for AllocatableError
Source§impl Display for AllocatableError
impl Display for AllocatableError
Source§impl Error for AllocatableError
impl Error for AllocatableError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<AllocatableError> for LoError
impl From<AllocatableError> for LoError
Source§fn from(source: AllocatableError) -> Self
fn from(source: AllocatableError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AllocatableError
impl RefUnwindSafe for AllocatableError
impl Send for AllocatableError
impl Sync for AllocatableError
impl Unpin for AllocatableError
impl UnwindSafe for AllocatableError
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