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>,
pub air_size_limit_exceeded: bool,
pub particle_size_limit_exceeded: bool,
pub call_result_size_limit_exceeded: bool,
}
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.
air_size_limit_exceeded: bool
This flag signals that AIR script size exceeds the limit.
particle_size_limit_exceeded: bool
This flag signals that particle data size exceeds the limit.
call_result_size_limit_exceeded: bool
This flag signals that call result size exceeds the limit.
Implementations§
source§impl InterpreterOutcome
impl InterpreterOutcome
pub fn new( ret_code: i64, error_message: String, data: Vec<u8>, next_peer_pks: Vec<String>, call_requests: SerializedCallRequests, soft_limits_triggering: SoftLimitsTriggering ) -> Self
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 for InterpreterOutcome
impl PartialEq 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 ==
.source§impl Serialize for InterpreterOutcome
impl Serialize for InterpreterOutcome
impl Eq 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§
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