evmc_set_storage_fn

Type Alias evmc_set_storage_fn 

Source
pub type evmc_set_storage_fn = Option<unsafe extern "C" fn(context: *mut evmc_host_context, address: *const evmc_address, key: *const evmc_bytes32, value: *const evmc_bytes32) -> evmc_storage_status>;
Expand description

Set storage callback function.

This callback function is used by a VM to update the given account storage entry. The VM MUST make sure that the account exists. This requirement is only a formality because VM implementations only modify storage of the account of the current execution context (i.e. referenced by evmc_message::destination).

@param context The pointer to the Host execution context. @param address The address of the account. @param key The index of the storage entry. @param value The value to be stored. @return The effect on the storage item.

Aliased Type§

pub enum evmc_set_storage_fn {
    None,
    Some(unsafe extern "C" fn(*mut evmc_host_context, *const evmc_address, *const evmc_bytes32, *const evmc_bytes32) -> evmc_storage_status),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(*mut evmc_host_context, *const evmc_address, *const evmc_bytes32, *const evmc_bytes32) -> evmc_storage_status)

Some value of type T.