Enum protos::sp_wsm::WASMExitCode
source · pub enum WASMExitCode {
WASM_EXIT_CODE_UNSET,
WASM_EXIT_CODE_SUCCESS,
WASM_EXIT_CODE_FAILURE,
WASM_EXIT_CODE_INTERNAL_ERROR,
}Expand description
Included in WASM response; SDK is responsible for interpreting the response status and how it relates to the step condition. ie. WASM func returns WASM_EXIT_CODE_INTERNAL_ERROR lookup ON_ERROR conditions to determine what to do next. ie. WASM func returns WASM_EXIT_CODE_SUCCESS lookup ON_MATCH conditions to determine what to do next;
Variants§
Trait Implementations§
source§impl Clone for WASMExitCode
impl Clone for WASMExitCode
source§fn clone(&self) -> WASMExitCode
fn clone(&self) -> WASMExitCode
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 WASMExitCode
impl Debug for WASMExitCode
source§impl Default for WASMExitCode
impl Default for WASMExitCode
source§impl Enum for WASMExitCode
impl Enum for WASMExitCode
source§fn from_i32(value: i32) -> Option<WASMExitCode>
fn from_i32(value: i32) -> Option<WASMExitCode>
Try to create an enum from
i32 value.
Return None if value is unknown.source§const VALUES: &'static [WASMExitCode] = _
const VALUES: &'static [WASMExitCode] = _
All enum values for enum type.
source§impl EnumFull for WASMExitCode
impl EnumFull for WASMExitCode
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for WASMExitCode
impl Hash for WASMExitCode
source§impl PartialEq<WASMExitCode> for WASMExitCode
impl PartialEq<WASMExitCode> for WASMExitCode
source§fn eq(&self, other: &WASMExitCode) -> bool
fn eq(&self, other: &WASMExitCode) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for WASMExitCode
impl Eq for WASMExitCode
impl StructuralEq for WASMExitCode
impl StructuralPartialEq for WASMExitCode
Auto Trait Implementations§
impl RefUnwindSafe for WASMExitCode
impl Send for WASMExitCode
impl Sync for WASMExitCode
impl Unpin for WASMExitCode
impl UnwindSafe for WASMExitCode
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