Struct ssvm_evmc_sys::evmc_host_interface[][src]

#[repr(C)]
pub struct evmc_host_interface { pub account_exists: evmc_account_exists_fn, pub get_storage: evmc_get_storage_fn, pub set_storage: evmc_set_storage_fn, pub get_balance: evmc_get_balance_fn, pub get_code_size: evmc_get_code_size_fn, pub get_code_hash: evmc_get_code_hash_fn, pub copy_code: evmc_copy_code_fn, pub selfdestruct: evmc_selfdestruct_fn, pub call: evmc_call_fn, pub get_tx_context: evmc_get_tx_context_fn, pub get_block_hash: evmc_get_block_hash_fn, pub emit_log: evmc_emit_log_fn, }
Expand description

The Host interface.

The set of all callback functions expected by VM instances. This is C realisation of vtable for OOP interface (only virtual methods, no data). Host implementations SHOULD create constant singletons of this (similarly to vtables) to lower the maintenance and memory management cost.

Fields

account_exists: evmc_account_exists_fn

Check account existence callback function.

get_storage: evmc_get_storage_fn

Get storage callback function.

set_storage: evmc_set_storage_fn

Set storage callback function.

get_balance: evmc_get_balance_fn

Get balance callback function.

get_code_size: evmc_get_code_size_fn

Get code size callback function.

get_code_hash: evmc_get_code_hash_fn

Get code hash callback function.

copy_code: evmc_copy_code_fn

Copy code callback function.

selfdestruct: evmc_selfdestruct_fn

Selfdestruct callback function.

call: evmc_call_fn

Call callback function.

get_tx_context: evmc_get_tx_context_fn

Get transaction context callback function.

get_block_hash: evmc_get_block_hash_fn

Get block hash callback function.

emit_log: evmc_emit_log_fn

Emit log callback function.

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

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

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

Performs the conversion.

Performs the conversion.

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.