pub enum FunctionCallErrorSer {
CompilationError(CompilationError),
LinkError {
msg: String,
},
MethodResolveError(MethodResolveError),
WasmTrap(WasmTrap),
WasmUnknownError,
HostError(HostError),
_EVMError,
ExecutionError(String),
}
Expand description
Serializable version of FunctionCallError
. Must never reorder/remove elements, can only
add new variants at the end (but do that very carefully). This type must be never used
directly, and must be converted to ContractCallError
instead using into()
converter.
It describes stable serialization format, and only used by serialization logic.
Variants
CompilationError(CompilationError)
Wasm compilation error
LinkError
Fields
msg: String
Wasm binary env link error
MethodResolveError(MethodResolveError)
Import/export resolve error
WasmTrap(WasmTrap)
A trap happened during execution of a binary
WasmUnknownError
HostError(HostError)
_EVMError
ExecutionError(String)
Trait Implementations
sourceimpl BorshDeserialize for FunctionCallErrorSerwhere
CompilationError: BorshDeserialize,
String: BorshDeserialize,
MethodResolveError: BorshDeserialize,
WasmTrap: BorshDeserialize,
HostError: BorshDeserialize,
String: BorshDeserialize,
impl BorshDeserialize for FunctionCallErrorSerwhere
CompilationError: BorshDeserialize,
String: BorshDeserialize,
MethodResolveError: BorshDeserialize,
WasmTrap: BorshDeserialize,
HostError: BorshDeserialize,
String: BorshDeserialize,
sourceimpl BorshSerialize for FunctionCallErrorSerwhere
CompilationError: BorshSerialize,
String: BorshSerialize,
MethodResolveError: BorshSerialize,
WasmTrap: BorshSerialize,
HostError: BorshSerialize,
String: BorshSerialize,
impl BorshSerialize for FunctionCallErrorSerwhere
CompilationError: BorshSerialize,
String: BorshSerialize,
MethodResolveError: BorshSerialize,
WasmTrap: BorshSerialize,
HostError: BorshSerialize,
String: BorshSerialize,
sourceimpl Clone for FunctionCallErrorSer
impl Clone for FunctionCallErrorSer
sourcefn clone(&self) -> FunctionCallErrorSer
fn clone(&self) -> FunctionCallErrorSer
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 FunctionCallErrorSer
impl Debug for FunctionCallErrorSer
sourceimpl<'de> Deserialize<'de> for FunctionCallErrorSer
impl<'de> Deserialize<'de> for FunctionCallErrorSer
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 PartialEq<FunctionCallErrorSer> for FunctionCallErrorSer
impl PartialEq<FunctionCallErrorSer> for FunctionCallErrorSer
sourcefn eq(&self, other: &FunctionCallErrorSer) -> bool
fn eq(&self, other: &FunctionCallErrorSer) -> bool
sourceimpl Serialize for FunctionCallErrorSer
impl Serialize for FunctionCallErrorSer
impl Eq for FunctionCallErrorSer
impl StructuralEq for FunctionCallErrorSer
impl StructuralPartialEq for FunctionCallErrorSer
Auto Trait Implementations
impl RefUnwindSafe for FunctionCallErrorSer
impl Send for FunctionCallErrorSer
impl Sync for FunctionCallErrorSer
impl Unpin for FunctionCallErrorSer
impl UnwindSafe for FunctionCallErrorSer
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