multiversx_sc_scenario::imports

Trait RHListExec

Source
pub trait RHListExec<RawResult, Env>: RHList<Env>
where Env: TxEnv,
{ // Required methods fn list_tx_expect(&self) -> <Env as TxEnv>::RHExpect; fn list_process_result(self, raw_result: &RawResult) -> Self::ListReturns; }
Expand description

Indicates how result processing will undergo for an ensemble of result handlers.

Required Methods§

Source

fn list_tx_expect(&self) -> <Env as TxEnv>::RHExpect

Provides the execution pre-processing, in which result handlers collectively produce an “expect” field.

The operation starts with the default “expect” field, which normally has all fields unspecified, except for the “status”, which is by default set to “0”. This means that failing transactions will cause a panic unless explicitly stated in one of the result handlers.

Source

fn list_process_result(self, raw_result: &RawResult) -> Self::ListReturns

Aggregates the executions of all result handlers, as configured for a transaction.

Implementations on Foreign Types§

Source§

impl<RawResult, Env> RHListExec<RawResult, Env> for ()
where Env: TxEnv,

Source§

fn list_tx_expect(&self) -> <Env as TxEnv>::RHExpect

Source§

fn list_process_result( self, _raw_result: &RawResult, ) -> <() as RHList<Env>>::ListReturns

Implementors§

Source§

impl<RawResult, Env, Head, Tail> RHListExec<RawResult, Env> for ConsNoRet<Env, Head, Tail>
where Env: TxEnv, Head: RHListItemExec<RawResult, Env, <Tail as TxResultHandler<Env>>::OriginalResult, Returns = ()>, Tail: RHListExec<RawResult, Env>,

Source§

impl<RawResult, Env, Head, Tail> RHListExec<RawResult, Env> for ConsRet<Env, Head, Tail>
where Env: TxEnv, Head: RHListItemExec<RawResult, Env, <Tail as TxResultHandler<Env>>::OriginalResult>, Tail: RHListExec<RawResult, Env>,

Source§

impl<RawResult, Env, O> RHListExec<RawResult, Env> for OriginalResultMarker<O>
where Env: TxEnv,