Struct air_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>, }
Expand description
Describes a result returned at the end of the interpreter execution.
Fields
ret_code: i32
Expand description
A return code, where INTERPRETER_SUCCESS means success.
error_message: String
Expand description
Contains error message if ret_code != INTERPRETER_SUCCESS.
data: Vec<u8>
Expand description
Contains script data that should be preserved in an executor of this interpreter regardless of ret_code value.
next_peer_pks: Vec<String>
Expand description
Public keys of peers that should receive data.
Implementations
Trait Implementations
impl Clone for InterpreterOutcome
[src]
impl Clone for InterpreterOutcome
[src]fn clone(&self) -> InterpreterOutcome
[src]
fn clone(&self) -> InterpreterOutcome
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for InterpreterOutcome
[src]
impl Debug for InterpreterOutcome
[src]impl<'de> Deserialize<'de> for InterpreterOutcome
[src]
impl<'de> Deserialize<'de> for InterpreterOutcome
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl PartialEq<InterpreterOutcome> for InterpreterOutcome
[src]
impl PartialEq<InterpreterOutcome> for InterpreterOutcome
[src]fn eq(&self, other: &InterpreterOutcome) -> bool
[src]
fn eq(&self, other: &InterpreterOutcome) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &InterpreterOutcome) -> bool
[src]
fn ne(&self, other: &InterpreterOutcome) -> bool
[src]This method tests for !=
.
impl Serialize for InterpreterOutcome
[src]
impl Serialize for InterpreterOutcome
[src]impl Eq for InterpreterOutcome
[src]
impl StructuralEq for InterpreterOutcome
[src]
impl StructuralPartialEq for InterpreterOutcome
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,