Struct interpreter_interface::InterpreterOutcome[][src]

pub struct InterpreterOutcome {
    pub ret_code: i32,
    pub error_message: String,
    pub data: Vec<u8>,
    pub next_peer_pks: Vec<String>,
}

Describes a result returned at the end of the interpreter execution.

Fields

ret_code: i32

A return code, where AQUA_INTERPRETER_SUCCESS means success.

error_message: String

Contains error message if ret_code != AQUA_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.

Implementations

impl InterpreterOutcome[src]

pub fn from_ivalues(ivalues: Vec<IValue>) -> Result<Self, String>[src]

Trait Implementations

impl Clone for InterpreterOutcome[src]

impl Debug for InterpreterOutcome[src]

impl<'de> Deserialize<'de> for InterpreterOutcome[src]

impl Eq for InterpreterOutcome[src]

impl PartialEq<InterpreterOutcome> for InterpreterOutcome[src]

impl Serialize for InterpreterOutcome[src]

impl StructuralEq for InterpreterOutcome[src]

impl StructuralPartialEq for InterpreterOutcome[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.