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,
pub soft_limits_triggering: SoftLimitsTriggering,
}
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)
soft_limits_triggering: SoftLimitsTriggering
To store and convey soft limits triggering flags.
Implementations§
source§impl AVMOutcome
impl AVMOutcome
pub fn from_raw_outcome( raw_outcome: RawAVMOutcome, memory_delta: usize, execution_time: Duration, ) -> Result<Self, 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<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 AVMOutcome
impl PartialEq 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
impl Eq for AVMOutcome
impl StructuralPartialEq for AVMOutcome
Auto Trait Implementations§
impl Freeze for AVMOutcome
impl RefUnwindSafe for AVMOutcome
impl Send for AVMOutcome
impl Sync for AVMOutcome
impl Unpin for AVMOutcome
impl UnwindSafe for AVMOutcome
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.