Struct sputnikvm::Runtime

source ·
pub struct Runtime {
    pub blockhash_state: BlockhashState,
    pub block: HeaderParams,
    pub context_history_hooks: Vec<Box<dyn Fn(&Context)>>,
}
Expand description

A VM runtime. Only available in eval.

Fields

blockhash_state: BlockhashState

The current blockhash commitment states.

block: HeaderParams

Block header.

context_history_hooks: Vec<Box<dyn Fn(&Context)>>

Hooks for context history.

Implementations

Create a new VM runtime.

Create the runtime with the given blockhash state.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.