pub enum PrepareError {
Serialization,
Deserialization,
InternalMemoryDeclared,
GasInstrumentation,
StackHeightInstrumentation,
Instantiate,
Memory,
}
Expand description
Error that can occur while preparing or executing Wasm smart-contract.
Variants§
Serialization
Error happened while serializing the module.
Deserialization
Error happened while deserializing the module.
InternalMemoryDeclared
Internal memory declaration has been found in the module.
GasInstrumentation
Gas instrumentation failed.
This most likely indicates the module isn’t valid.
StackHeightInstrumentation
Stack instrumentation failed.
This most likely indicates the module isn’t valid.
Instantiate
Error happened during instantiation.
This might indicate that start
function trapped, or module isn’t
instantiable and/or unlinkable.
Memory
Error creating memory.
Trait Implementations§
Source§impl BorshDeserialize for PrepareError
impl BorshDeserialize for PrepareError
Source§impl BorshSerialize for PrepareError
impl BorshSerialize for PrepareError
Source§impl Clone for PrepareError
impl Clone for PrepareError
Source§fn clone(&self) -> PrepareError
fn clone(&self) -> PrepareError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PrepareError
impl Debug for PrepareError
Source§impl<'de> Deserialize<'de> for PrepareError
impl<'de> Deserialize<'de> for PrepareError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for PrepareError
impl Display for PrepareError
Source§impl From<PrepareError> for VMError
impl From<PrepareError> for VMError
Source§fn from(err: PrepareError) -> Self
fn from(err: PrepareError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PrepareError
impl PartialEq for PrepareError
Source§impl Serialize for PrepareError
impl Serialize for PrepareError
impl Eq for PrepareError
impl StructuralPartialEq for PrepareError
Auto Trait Implementations§
impl Freeze for PrepareError
impl RefUnwindSafe for PrepareError
impl Send for PrepareError
impl Sync for PrepareError
impl Unpin for PrepareError
impl UnwindSafe for PrepareError
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