Skip to main content

JitBackend

Trait JitBackend 

Source
pub trait JitBackend: Send + Sync {
    // Required methods
    fn set_enabled(&self, enabled: bool) -> Result<(), String>;
    fn pause(&self);
    fn resume(&self);
    fn clear(&self);
}
Available on crate feature evm only.
Expand description

JIT backend controls exposed by an EVM configuration.

Required Methods§

Source

fn set_enabled(&self, enabled: bool) -> Result<(), String>

Enables or disables JIT compilation.

Source

fn pause(&self)

Pauses JIT helper execution while keeping queueing and resident compiled code available.

Source

fn resume(&self)

Resumes background JIT work.

Source

fn clear(&self)

Clears JIT runtime state.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl JitBackend for RethEvmFactory

Available on crate feature jit only.