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
sourceimpl InterpreterOutcome
impl InterpreterOutcome
pub fn from_ivalue(ivalue: IValue) -> Result<Self, String>
Trait Implementations
sourceimpl Clone for InterpreterOutcome
impl Clone for InterpreterOutcome
sourcefn clone(&self) -> InterpreterOutcome
fn clone(&self) -> InterpreterOutcome
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 InterpreterOutcome
impl Debug for InterpreterOutcome
sourceimpl<'de> Deserialize<'de> for InterpreterOutcome
impl<'de> Deserialize<'de> for InterpreterOutcome
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<InterpreterOutcome> for InterpreterOutcome
impl PartialEq<InterpreterOutcome> for InterpreterOutcome
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &InterpreterOutcome) -> bool
fn ne(&self, other: &InterpreterOutcome) -> bool
This method tests for !=
.
sourceimpl Serialize for InterpreterOutcome
impl Serialize for InterpreterOutcome
impl Eq for InterpreterOutcome
impl StructuralEq for InterpreterOutcome
impl StructuralPartialEq for InterpreterOutcome
Auto Trait Implementations
impl RefUnwindSafe for InterpreterOutcome
impl Send for InterpreterOutcome
impl Sync for InterpreterOutcome
impl Unpin for InterpreterOutcome
impl UnwindSafe for InterpreterOutcome
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