Enum near_vm_errors::WasmTrap
source · pub enum WasmTrap {
Unreachable,
IncorrectCallIndirectSignature,
MemoryOutOfBounds,
CallIndirectOOB,
IllegalArithmetic,
MisalignedAtomicAccess,
IndirectCallToNull,
StackOverflow,
GenericTrap,
}
Expand description
A kind of a trap happened during execution of a binary
Variants§
Unreachable
An unreachable
opcode was executed.
IncorrectCallIndirectSignature
Call indirect incorrect signature trap.
MemoryOutOfBounds
Memory out of bounds trap.
CallIndirectOOB
Call indirect out of bounds trap.
IllegalArithmetic
An arithmetic exception, e.g. divided by zero.
MisalignedAtomicAccess
Misaligned atomic access trap.
IndirectCallToNull
Indirect call to null.
StackOverflow
Stack overflow.
GenericTrap
Generic trap.
Trait Implementations§
source§impl BorshDeserialize for WasmTrap
impl BorshDeserialize for WasmTrap
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 WasmTrap
impl BorshSerialize for WasmTrap
source§impl<'de> Deserialize<'de> for WasmTrap
impl<'de> Deserialize<'de> for WasmTrap
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