pub struct InteractorEnvExec<'w> {
pub world: &'w mut Interactor,
pub data: ScenarioTxEnvData,
}
Expand description
Environment for executing transactions.
Fields§
§world: &'w mut Interactor
§data: ScenarioTxEnvData
Trait Implementations§
source§impl<'w> ScenarioTxEnv for InteractorEnvExec<'w>
impl<'w> ScenarioTxEnv for InteractorEnvExec<'w>
fn env_data(&self) -> &ScenarioTxEnvData
source§impl<'w> TxEnv for InteractorEnvExec<'w>
impl<'w> TxEnv for InteractorEnvExec<'w>
type Api = VMHooksApi<StaticApiBackend>
§type RHExpect = TxExpect
type RHExpect = TxExpect
Type built by result handlers that translates into the “expect” section in scenarios.
fn resolve_sender_address(&self) -> ManagedAddress<Self::Api>
fn default_gas_annotation(&self) -> ManagedBuffer<Self::Api>
fn default_gas_value(&self) -> u64
source§impl<'w, From, To, Gas, RH, CodeValue> TxToStep<InteractorEnvExec<'w>, RH> for Tx<InteractorEnvExec<'w>, From, To, NotPayable, Gas, UpgradeCall<InteractorEnvExec<'w>, Code<CodeValue>>, RH>where
From: TxFromSpecified<InteractorEnvExec<'w>>,
To: TxToSpecified<InteractorEnvExec<'w>>,
Gas: TxGas<InteractorEnvExec<'w>>,
CodeValue: TxCodeValue<InteractorEnvExec<'w>>,
RH: RHListExec<TxResponse, InteractorEnvExec<'w>>,
RH::ListReturns: NestedTupleFlatten,
impl<'w, From, To, Gas, RH, CodeValue> TxToStep<InteractorEnvExec<'w>, RH> for Tx<InteractorEnvExec<'w>, From, To, NotPayable, Gas, UpgradeCall<InteractorEnvExec<'w>, Code<CodeValue>>, RH>where
From: TxFromSpecified<InteractorEnvExec<'w>>,
To: TxToSpecified<InteractorEnvExec<'w>>,
Gas: TxGas<InteractorEnvExec<'w>>,
CodeValue: TxCodeValue<InteractorEnvExec<'w>>,
RH: RHListExec<TxResponse, InteractorEnvExec<'w>>,
RH::ListReturns: NestedTupleFlatten,
type Step = ScCallStep
fn tx_to_step(self) -> StepWrapper<InteractorEnvExec<'w>, Self::Step, RH>
Auto Trait Implementations§
impl<'w> Freeze for InteractorEnvExec<'w>
impl<'w> !RefUnwindSafe for InteractorEnvExec<'w>
impl<'w> Send for InteractorEnvExec<'w>
impl<'w> Sync for InteractorEnvExec<'w>
impl<'w> Unpin for InteractorEnvExec<'w>
impl<'w> !UnwindSafe for InteractorEnvExec<'w>
Blanket Implementations§
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> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more