Enum near_vm_errors::PrepareError
source · [−]pub enum PrepareError {
Serialization,
Deserialization,
InternalMemoryDeclared,
GasInstrumentation,
StackHeightInstrumentation,
Instantiate,
Memory,
TooManyFunctions,
TooManyLocals,
}
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.
TooManyLocals
Contract contains too many locals.
Trait Implementations
sourceimpl BorshDeserialize for PrepareError
impl BorshDeserialize for PrepareError
sourceimpl BorshSerialize for PrepareError
impl BorshSerialize for PrepareError
sourceimpl Clone for PrepareError
impl Clone for PrepareError
sourcefn clone(&self) -> PrepareError
fn clone(&self) -> PrepareError
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for PrepareError
impl Debug for PrepareError
sourceimpl<'de> Deserialize<'de> for PrepareError
impl<'de> Deserialize<'de> for PrepareError
sourcefn 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
sourceimpl Display for PrepareError
impl Display for PrepareError
sourceimpl From<PrepareError> for VMError
impl From<PrepareError> for VMError
sourcefn from(err: PrepareError) -> Self
fn from(err: PrepareError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<PrepareError> for PrepareError
impl PartialEq<PrepareError> for PrepareError
sourcefn eq(&self, other: &PrepareError) -> bool
fn eq(&self, other: &PrepareError) -> bool
sourceimpl Serialize for PrepareError
impl Serialize for PrepareError
impl Eq for PrepareError
impl StructuralEq for PrepareError
impl StructuralPartialEq for PrepareError
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more