Enum unc_primitives::errors::FunctionCallError
source · pub enum FunctionCallError {
CompilationError(CompilationError),
LinkError {
msg: String,
},
MethodResolveError(MethodResolveError),
WasmTrap(WasmTrap),
WasmUnknownError,
HostError(HostError),
_EVMError,
ExecutionError(String),
}Expand description
Serializable version of unc-vm-runner::FunctionCallError.
Must never reorder/remove elements, can only add new variants at the end (but do that very carefully). It describes stable serialization format, and only used by serialization logic.
Variants§
CompilationError(CompilationError)
Wasm compilation error
LinkError
Wasm binary env link error
Note: this is only to deserialize old data, use execution error for new data
MethodResolveError(MethodResolveError)
Import/export resolve error
WasmTrap(WasmTrap)
A trap happened during execution of a binary
Note: this is only to deserialize old data, use execution error for new data
WasmUnknownError
HostError(HostError)
Note: this is only to deserialize old data, use execution error for new data
_EVMError
ExecutionError(String)
Trait Implementations§
source§impl BorshDeserialize for FunctionCallError
impl BorshDeserialize for FunctionCallError
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 FunctionCallError
impl BorshSerialize for FunctionCallError
source§impl Clone for FunctionCallError
impl Clone for FunctionCallError
source§fn clone(&self) -> FunctionCallError
fn clone(&self) -> FunctionCallError
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 FunctionCallError
impl Debug for FunctionCallError
source§impl<'de> Deserialize<'de> for FunctionCallError
impl<'de> Deserialize<'de> for FunctionCallError
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 EnumExt for FunctionCallError
impl EnumExt for FunctionCallError
source§impl From<FunctionCallError> for FunctionCallError
impl From<FunctionCallError> for FunctionCallError
source§fn from(outer_err: FunctionCallError) -> Self
fn from(outer_err: FunctionCallError) -> Self
Converts to this type from the input type.
source§impl PartialEq for FunctionCallError
impl PartialEq for FunctionCallError
source§fn eq(&self, other: &FunctionCallError) -> bool
fn eq(&self, other: &FunctionCallError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for FunctionCallError
impl Serialize for FunctionCallError
impl Eq for FunctionCallError
impl StructuralPartialEq for FunctionCallError
Auto Trait Implementations§
impl Freeze for FunctionCallError
impl RefUnwindSafe for FunctionCallError
impl Send for FunctionCallError
impl Sync for FunctionCallError
impl Unpin for FunctionCallError
impl UnwindSafe for FunctionCallError
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.