evmc_call_fn

Type Alias evmc_call_fn 

Source
pub type evmc_call_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, msg: *const evmc_message) -> evmc_result>;
Expand description

Pointer to the callback function supporting EVM calls.

@param context The pointer to the Host execution context. @param msg The call parameters. @return The result of the call.

Aliased Type§

pub enum evmc_call_fn {
    None,
    Some(unsafe extern "C" fn(*mut evmc_host_context, *const evmc_message) -> evmc_result),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut evmc_host_context, *const evmc_message) -> evmc_result)

Some value of type T.