#[repr(C)]pub struct evmc_host_interface {Show 14 fields
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,
pub access_account: evmc_access_account_fn,
pub access_storage: evmc_access_storage_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.
access_account: evmc_access_account_fnAccess account callback function.
access_storage: evmc_access_storage_fnAccess storage callback function.
Trait Implementations§
Source§impl Clone for evmc_host_interface
impl Clone for evmc_host_interface
Source§fn clone(&self) -> evmc_host_interface
fn clone(&self) -> evmc_host_interface
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for evmc_host_interface
impl Debug for evmc_host_interface
Source§impl Hash for evmc_host_interface
impl Hash for evmc_host_interface
Source§impl PartialEq for evmc_host_interface
impl PartialEq for evmc_host_interface
impl Copy for evmc_host_interface
impl StructuralPartialEq for evmc_host_interface
Auto Trait Implementations§
impl Freeze for evmc_host_interface
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more