logo
pub struct Config {
Show 13 fields pub max_call_depth: usize, pub stack_frame_size: usize, pub enable_stack_frame_gaps: bool, pub instruction_meter_checkpoint_distance: usize, pub enable_instruction_meter: bool, pub enable_instruction_tracing: bool, pub enable_symbol_and_section_labels: bool, pub disable_unresolved_symbols_at_runtime: bool, pub reject_broken_elfs: bool, pub noop_instruction_ratio: f64, pub sanitize_user_provided_values: bool, pub encrypt_environment_registers: bool, pub disable_deprecated_load_instructions: bool,
}
Expand description

VM configuration settings

Fields

max_call_depth: usize

Maximum call depth

stack_frame_size: usize

Size of a stack frame in bytes, must match the size specified in the LLVM BPF backend

enable_stack_frame_gaps: bool

Enables gaps in VM address space between the stack frames

instruction_meter_checkpoint_distance: usize

Maximal pc distance after which a new instruction meter validation is emitted by the JIT

enable_instruction_meter: bool

Enable instruction meter and limiting

enable_instruction_tracing: bool

Enable instruction tracing

enable_symbol_and_section_labels: bool

Enable dynamic string allocation for labels

disable_unresolved_symbols_at_runtime: bool

Disable reporting of unresolved symbols at runtime

reject_broken_elfs: bool

Reject ELF files containing issues that the verifier did not catch before (up to v0.2.21)

noop_instruction_ratio: f64

Ratio of random no-ops per instruction in JIT (0.0 = OFF)

sanitize_user_provided_values: bool

Enable disinfection of immediate values and offsets provided by the user in JIT

encrypt_environment_registers: bool

Encrypt the environment registers in JIT

disable_deprecated_load_instructions: bool

Disable ldabs* and ldind* instructions

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

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.