Struct air_test_utils::prelude::AVMOutcome
source · pub struct AVMOutcome {
pub data: Vec<u8, Global>,
pub call_requests: HashMap<u32, CallRequestParams, RandomState>,
pub next_peer_pks: Vec<String, Global>,
pub memory_delta: usize,
pub execution_time: Duration,
}
Fields§
§data: Vec<u8, Global>
Contains script data that should be preserved in an executor of this interpreter regardless of ret_code value.
call_requests: HashMap<u32, CallRequestParams, RandomState>
Collected parameters of all met call instructions that could be executed on a current peer.
next_peer_pks: Vec<String, Global>
Public keys of peers that should receive data.
memory_delta: usize
Memory in bytes AVM linear heap was extended during execution by.
execution_time: Duration
Time of a particle execution (it counts only execution time without operations with DataStore and so on)
Implementations§
source§impl AVMOutcome
impl AVMOutcome
pub fn from_raw_outcome( raw_outcome: RawAVMOutcome, memory_delta: usize, execution_time: Duration ) -> Result<AVMOutcome, ErrorAVMOutcome>
Trait Implementations§
source§impl Clone for AVMOutcome
impl Clone for AVMOutcome
source§fn clone(&self) -> AVMOutcome
fn clone(&self) -> AVMOutcome
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 AVMOutcome
impl Debug for AVMOutcome
source§impl<'de> Deserialize<'de> for AVMOutcome
impl<'de> Deserialize<'de> for AVMOutcome
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<AVMOutcome, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<AVMOutcome, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<AVMOutcome> for AVMOutcome
impl PartialEq<AVMOutcome> for AVMOutcome
source§fn eq(&self, other: &AVMOutcome) -> bool
fn eq(&self, other: &AVMOutcome) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for AVMOutcome
impl Serialize for AVMOutcome
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for AVMOutcome
impl StructuralEq for AVMOutcome
impl StructuralPartialEq for AVMOutcome
Auto Trait Implementations§
impl RefUnwindSafe for AVMOutcome
impl Send for AVMOutcome
impl Sync for AVMOutcome
impl Unpin for AVMOutcome
impl UnwindSafe for AVMOutcome
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> GetSetFdFlags for T
impl<T> GetSetFdFlags for T
§fn get_fd_flags(&self) -> Result<FdFlags, Error>where
T: AsFilelike,
fn get_fd_flags(&self) -> Result<FdFlags, Error>where T: AsFilelike,
Query the “status” flags for the
self
file descriptor.