Struct avm_interface::AVMOutcome
source · [−]pub struct AVMOutcome {
pub data: Vec<u8>,
pub call_requests: CallRequests,
pub next_peer_pks: Vec<String>,
pub memory_delta: usize,
pub execution_time: Duration,
}
Fields
data: Vec<u8>
Contains script data that should be preserved in an executor of this interpreter regardless of ret_code value.
call_requests: CallRequests
Collected parameters of all met call instructions that could be executed on a current peer.
next_peer_pks: Vec<String>
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
sourceimpl AVMOutcome
impl AVMOutcome
pub fn from_raw_outcome(
raw_outcome: RawAVMOutcome,
memory_delta: usize,
execution_time: Duration
) -> Result<Self, ErrorAVMOutcome>
Trait Implementations
sourceimpl Clone for AVMOutcome
impl Clone for AVMOutcome
sourcefn clone(&self) -> AVMOutcome
fn clone(&self) -> AVMOutcome
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AVMOutcome
impl Debug for AVMOutcome
sourceimpl<'de> Deserialize<'de> for AVMOutcome
impl<'de> Deserialize<'de> for AVMOutcome
sourcefn 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
sourceimpl PartialEq<AVMOutcome> for AVMOutcome
impl PartialEq<AVMOutcome> for AVMOutcome
sourcefn 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 ==
. Read more
sourceimpl Serialize for AVMOutcome
impl Serialize for AVMOutcome
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more