pub fn configure_store(&self, store: &mut Store<StoreLimits>) {
        store.limiter(|s| s as &mut dyn wasmtime::ResourceLimiter);
        if self.wasmtime.consume_fuel {
            store.add_fuel(u64::max_value()).unwrap();
        }
        if self.wasmtime.epoch_interruption {
            // Without fuzzing of async execution, we can't test the
            // "update deadline and continue" behavior, but we can at
            // least test the codegen paths and checks with the
            // trapping behavior, which works synchronously too. We'll
            // set the deadline one epoch tick in the future; then
            // this works exactly like an interrupt flag. We expect no
            // traps/interrupts unless we bump the epoch, which we do
            // as one particular Timeout mode (`Timeout::Epoch`).
            store.epoch_deadline_trap();
            store.set_epoch_deadline(1);
        }
    }
/// Configures a store based on this configuration.
Configures a store based on this configuration.
Configures a store based on this configuration .
pub fn configure_store(&self, store: &mut Store<StoreLimits>) {
        store.limiter(|s| s as &mut dyn wasmtime::ResourceLimiter);
        if self.wasmtime.consume_fuel {
            store.add_fuel(u64::max_value()).unwrap();
        }
        if self.wasmtime.epoch_interruption {
            // Without fuzzing of async execution, we can't test the
            // "update deadline and continue" behavior, but we can at
            // least test the codegen paths and checks with the
            // trapping behavior, which works synchronously too. We'll
            // set the deadline one epoch tick in the future; then
            // this works exactly like an interrupt flag. We expect no
            // traps/interrupts unless we bump the epoch, which we do
            // as one particular Timeout mode (`Timeout::Epoch`).
            store.epoch_deadline_trap();
            store.set_epoch_deadline(1);
        }
    }
pub fn configure_store ( & self , store : & mut Store < StoreLimits > ) { store . limiter ( | s | s as & mut dyn wasmtime :: ResourceLimiter ) ; if self . wasmtime . consume_fuel { store . add_fuel ( u64 :: max_value ( ) ) . unwrap ( ) ; } if self . wasmtime . epoch_interruption { // Without fuzzing of async execution, we can't test the // "update deadline and continue" behavior, but we can at // least test the codegen paths and checks with the // trapping behavior, which works synchronously too. We'll // set the deadline one epoch tick in the future; then // this works exactly like an interrupt flag. We expect no // traps/interrupts unless we bump the epoch, which we do // as one particular Timeout mode (`Timeout::Epoch`). store . epoch_deadline_trap ( ) ; store . set_epoch_deadline ( 1 ) ; } }
Configures a store based on this configuration.
Configures a store based on this configuration .
&self
store
&mut Store<StoreLimits>
&self
store
&mut Store<StoreLimits>