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
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§
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 for InterpreterOutcome
impl PartialEq for InterpreterOutcome
Source§impl Serialize for InterpreterOutcome
impl Serialize for InterpreterOutcome
impl Eq for InterpreterOutcome
impl StructuralPartialEq for InterpreterOutcome
Auto Trait Implementations§
impl Freeze for InterpreterOutcome
impl RefUnwindSafe for InterpreterOutcome
impl Send for InterpreterOutcome
impl Sync for InterpreterOutcome
impl Unpin for InterpreterOutcome
impl UnwindSafe for InterpreterOutcome
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)