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 FunctionCallErrorSer where
CompilationError: BorshDeserialize,
String: BorshDeserialize,
MethodResolveError: BorshDeserialize,
WasmTrap: BorshDeserialize,
HostError: BorshDeserialize,
String: BorshDeserialize,
impl BorshDeserialize for FunctionCallErrorSer where
CompilationError: BorshDeserialize,
String: BorshDeserialize,
MethodResolveError: BorshDeserialize,
WasmTrap: BorshDeserialize,
HostError: BorshDeserialize,
String: BorshDeserialize,
sourceimpl BorshSerialize for FunctionCallErrorSer where
CompilationError: BorshSerialize,
String: BorshSerialize,
MethodResolveError: BorshSerialize,
WasmTrap: BorshSerialize,
HostError: BorshSerialize,
String: BorshSerialize,
impl BorshSerialize for FunctionCallErrorSer where
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 more
sourceimpl 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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &FunctionCallErrorSer) -> bool
fn ne(&self, other: &FunctionCallErrorSer) -> bool
This method tests for !=
.
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more