Struct air::InterpreterOutcome
source · pub struct InterpreterOutcome {
pub ret_code: i64,
pub error_message: String,
pub data: Vec<u8, Global>,
pub next_peer_pks: Vec<String, Global>,
pub call_requests: Vec<u8, Global>,
}
Expand description
Describes a result returned at the end of the interpreter execution_step.
Fields§
§ret_code: i64
A return code, where INTERPRETER_SUCCESS means success.
error_message: String
Contains error message if ret_code != INTERPRETER_SUCCESS.
data: Vec<u8, Global>
Contains script data that should be preserved in an executor of this interpreter regardless of ret_code value.
next_peer_pks: Vec<String, Global>
Public keys of peers that should receive data.
call_requests: Vec<u8, Global>
Collected parameters of all met call instructions that could be executed on a current peer.
Implementations§
source§impl InterpreterOutcome
impl InterpreterOutcome
pub fn from_ivalue(ivalue: IValue) -> Result<InterpreterOutcome, String>
Trait Implementations§
source§impl Clone for InterpreterOutcome
impl Clone for InterpreterOutcome
source§fn clone(&self) -> InterpreterOutcome
fn clone(&self) -> InterpreterOutcome
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 InterpreterOutcome
impl Debug for InterpreterOutcome
source§impl<'de> Deserialize<'de> for InterpreterOutcome
impl<'de> Deserialize<'de> for InterpreterOutcome
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<InterpreterOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<InterpreterOutcome, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<InterpreterOutcome> for InterpreterOutcome
impl PartialEq<InterpreterOutcome> for InterpreterOutcome
source§fn eq(&self, other: &InterpreterOutcome) -> bool
fn eq(&self, other: &InterpreterOutcome) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for InterpreterOutcome
impl Serialize for InterpreterOutcome
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more