evmc_get_tx_context_fn

Type Alias evmc_get_tx_context_fn 

Source
pub type evmc_get_tx_context_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context) -> evmc_tx_context>;
Expand description

Get transaction context callback function.

This callback function is used by an EVM to retrieve the transaction and block context.

@param context The pointer to the Host execution context. @return The transaction context.

Aliased Type§

pub enum evmc_get_tx_context_fn {
    None,
    Some(unsafe extern "C" fn(*mut evmc_host_context) -> evmc_tx_context),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut evmc_host_context) -> evmc_tx_context)

Some value of type T.