Struct avm_server::InterpreterOutcome [−][src]
pub struct InterpreterOutcome { pub ret_code: i32, pub error_message: String, pub data: Vec<u8, Global>, pub next_peer_pks: Vec<String, Global>, }
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, Global>
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, Global>
Expand description
Public keys of peers that should receive data.
Implementations
impl InterpreterOutcome
[src]
impl InterpreterOutcome
[src]pub fn from_ivalues(
ivalues: Vec<IValue, Global>
) -> Result<InterpreterOutcome, String>
[src]
ivalues: Vec<IValue, Global>
) -> Result<InterpreterOutcome, String>
Trait Implementations
impl Clone for InterpreterOutcome
[src]
impl Clone for InterpreterOutcome
[src]pub fn clone(&self) -> InterpreterOutcome
[src]
pub 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]pub fn deserialize<__D>(
__deserializer: __D
) -> Result<InterpreterOutcome, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
[src]
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<InterpreterOutcome, <__D as Deserializer<'de>>::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]pub fn eq(&self, other: &InterpreterOutcome) -> bool
[src]
pub fn eq(&self, other: &InterpreterOutcome) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
pub fn ne(&self, other: &InterpreterOutcome) -> bool
[src]
pub fn ne(&self, other: &InterpreterOutcome) -> bool
[src]This method tests for !=
.
impl Serialize for InterpreterOutcome
[src]
impl Serialize for InterpreterOutcome
[src]pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
[src]Serialize this value into the given Serde serializer. Read more
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<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]pub fn equivalent(&self, key: &K) -> bool
[src]
pub fn equivalent(&self, key: &K) -> bool
[src]Compare self to key
and return true
if they are equal.
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]
impl<T> Serialize for T where
T: Serialize + ?Sized,
[src]pub fn erased_serialize(
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
[src]
&self,
serializer: &mut dyn Serializer
) -> Result<Ok, Error>
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>,