[][src]Enum near_vm_errors::PrepareError

pub enum PrepareError {
    Serialization,
    Deserialization,
    InternalMemoryDeclared,
    GasInstrumentation,
    StackHeightInstrumentation,
    Instantiate,
    Memory,
}

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

impl BorshDeserialize for PrepareError[src]

impl BorshSerialize for PrepareError[src]

impl Clone for PrepareError[src]

impl Debug for PrepareError[src]

impl<'de> Deserialize<'de> for PrepareError[src]

impl Display for PrepareError[src]

impl Eq for PrepareError[src]

impl From<PrepareError> for VMError[src]

impl PartialEq<PrepareError> for PrepareError[src]

impl Serialize for PrepareError[src]

impl StructuralEq for PrepareError[src]

impl StructuralPartialEq for PrepareError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.