Enum near_vm_errors::PrepareError [−][src]
pub enum PrepareError {
Serialization,
Deserialization,
InternalMemoryDeclared,
GasInstrumentation,
StackHeightInstrumentation,
Instantiate,
Memory,
TooManyFunctions,
}
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.
TooManyFunctions
Contract contains too many functions.
Trait Implementations
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
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for PrepareError
impl Send for PrepareError
impl Sync for PrepareError
impl Unpin for PrepareError
impl UnwindSafe for PrepareError
Blanket Implementations
Mutably borrows from an owned value. Read more