pub struct InterpreterOutcome {
pub ret_code: i64,
pub error_message: String,
pub data: Vec<u8>,
pub next_peer_pks: Vec<String>,
pub call_requests: Vec<u8>,
}
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>
Contains script data that should be preserved in an executor of this interpreter regardless of ret_code value.
next_peer_pks: Vec<String>
Public keys of peers that should receive data.
call_requests: Vec<u8>
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<Self, 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<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
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 ==
.