evmc_set_option_fn

Type Alias evmc_set_option_fn 

Source
pub type evmc_set_option_fn = Option<unsafe extern "C" fn(vm: *mut evmc_vm, name: *const c_char, value: *const c_char) -> evmc_set_option_result>;
Expand description

Configures the VM instance.

Allows modifying options of the VM instance. Options:

  • code cache behavior: on, off, read-only, …
  • optimizations,

@param vm The VM instance to be configured. @param name The option name. NULL-terminated string. Cannot be NULL. @param value The new option value. NULL-terminated string. Cannot be NULL. @return The outcome of the operation.

Aliased Type§

pub enum evmc_set_option_fn {
    None,
    Some(unsafe extern "C" fn(*mut evmc_vm, *const i8, *const i8) -> evmc_set_option_result),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut evmc_vm, *const i8, *const i8) -> evmc_set_option_result)

Some value of type T.