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§
source§impl BorshDeserialize for PrepareError
impl BorshDeserialize for PrepareError
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
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 copy 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 EnumExt for PrepareError
impl EnumExt for PrepareError
source§impl From<PrepareError> for FunctionCallError
impl From<PrepareError> for FunctionCallError
source§fn from(err: PrepareError) -> Self
fn from(err: PrepareError) -> Self
Converts to this type from the input type.
source§impl PartialEq<PrepareError> for PrepareError
impl PartialEq<PrepareError> for PrepareError
source§fn eq(&self, other: &PrepareError) -> bool
fn eq(&self, other: &PrepareError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.