pub struct Budgeted<Env> {
pub env: Env,
/* private fields */
}
Expand description
An Environment
that allows executing an amount of instructions before
pausing the virtual machine.
Fields§
§env: Env
The wrapped environment.
Implementations§
source§impl<Env> Budgeted<Env>
impl<Env> Budgeted<Env>
Trait Implementations§
source§impl<Env> Environment for Budgeted<Env>where
Env: Environment,
impl<Env> Environment for Budgeted<Env>where Env: Environment,
§type String = <Env as Environment>::String
type String = <Env as Environment>::String
The string type for this environment.
§type Intrinsic = <Env as Environment>::Intrinsic
type Intrinsic = <Env as Environment>::Intrinsic
The intrinsics offered by this environment.
source§fn step(&mut self) -> ExecutionBehavior
fn step(&mut self) -> ExecutionBehavior
Called once before each instruction is executed. Read more
source§fn intrinsic(
&mut self,
intrinsic: &Self::Intrinsic,
args: PoppedValues<'_>
) -> Result<Value, FaultKind>
fn intrinsic( &mut self, intrinsic: &Self::Intrinsic, args: PoppedValues<'_> ) -> Result<Value, FaultKind>
Evalutes the
intrinsic
operation with the provided arguments. Read more