pub enum ContractCallError {
NoReturn,
TypeMismatch(String),
Panicked(String),
Wasm32CrossCallUnavailable {
syscall: &'static str,
},
Other(NeoError),
}Expand description
Error type for the L9 typed-call helpers. Reserved for future use (the L6 cross-call executor will return this rather than panicking with “see L6 design”).
Variants§
NoReturn
The call returned no value.
TypeMismatch(String)
The call returned a value of the wrong type.
Panicked(String)
The call panicked (L6: cross-call executor will replace this with a proper Result).
L6 minimal: the wasm32 cross-call stub (System.Contract.Call
/ System.Runtime.LoadScript / System.Contract.CallNative)
was invoked, but a real wasm32 cross-call executor is not
yet implemented. The contract author can match on this
variant and degrade gracefully (e.g. return a default
value) instead of crashing the VM.
Other(NeoError)
Other (delegated from NeoError).
Trait Implementations§
Source§impl Clone for ContractCallError
impl Clone for ContractCallError
Source§fn clone(&self) -> ContractCallError
fn clone(&self) -> ContractCallError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContractCallError
impl Debug for ContractCallError
Source§impl Display for ContractCallError
impl Display for ContractCallError
impl Eq for ContractCallError
Source§impl Error for ContractCallError
impl Error for ContractCallError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<NeoError> for ContractCallError
impl From<NeoError> for ContractCallError
Source§impl PartialEq for ContractCallError
impl PartialEq for ContractCallError
Source§fn eq(&self, other: &ContractCallError) -> bool
fn eq(&self, other: &ContractCallError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ContractCallError
Auto Trait Implementations§
impl Freeze for ContractCallError
impl RefUnwindSafe for ContractCallError
impl Send for ContractCallError
impl Sync for ContractCallError
impl Unpin for ContractCallError
impl UnsafeUnpin for ContractCallError
impl UnwindSafe for ContractCallError
Blanket Implementations§
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