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_fnCheck account existence callback function.
get_storage: evmc_get_storage_fnGet storage callback function.
set_storage: evmc_set_storage_fnSet storage callback function.
get_balance: evmc_get_balance_fnGet balance callback function.
get_code_size: evmc_get_code_size_fnGet code size callback function.
get_code_hash: evmc_get_code_hash_fnGet code hash callback function.
copy_code: evmc_copy_code_fnCopy code callback function.
selfdestruct: evmc_selfdestruct_fnSelfdestruct callback function.
call: evmc_call_fnCall callback function.
get_tx_context: evmc_get_tx_context_fnGet transaction context callback function.
get_block_hash: evmc_get_block_hash_fnGet block hash callback function.
emit_log: evmc_emit_log_fnEmit log callback function.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for evmc_host_interface
impl Send for evmc_host_interface
impl Sync for evmc_host_interface
impl Unpin for evmc_host_interface
impl UnwindSafe for evmc_host_interface
Blanket Implementations
Mutably borrows from an owned value. Read more