[−][src]Struct evmc_sys::evmc_vm
The VM instance.
Defines the base struct of the VM implementation.
Fields
abi_version: c_int
EVMC ABI version implemented by the VM instance.
Can be used to detect ABI incompatibilities. The EVMC ABI version represented by this file is in ::EVMC_ABI_VERSION.
name: *const c_char
The name of the EVMC VM implementation.
It MUST be a NULL-terminated not empty string. The content MUST be UTF-8 encoded (this implies ASCII encoding is also allowed).
version: *const c_char
The version of the EVMC VM implementation, e.g. "1.2.3b4".
It MUST be a NULL-terminated not empty string. The content MUST be UTF-8 encoded (this implies ASCII encoding is also allowed).
destroy: evmc_destroy_fn
Pointer to function destroying the VM instance.
This is a mandatory method and MUST NOT be set to NULL.
execute: evmc_execute_fn
Pointer to function executing a code by the VM instance.
This is a mandatory method and MUST NOT be set to NULL.
get_capabilities: evmc_get_capabilities_fn
A method returning capabilities supported by the VM instance.
The value returned MAY change when different options are set via the set_option() method.
A Client SHOULD only rely on the value returned if it has queried it after it has called the set_option().
This is a mandatory method and MUST NOT be set to NULL.
set_option: evmc_set_option_fn
Optional pointer to function modifying VM's options.
If the VM does not support this feature the pointer can be NULL.
Trait Implementations
impl Clone for evmc_vm
[src]
impl Copy for evmc_vm
[src]
impl Debug for evmc_vm
[src]
impl Hash for evmc_vm
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl PartialEq<evmc_vm> for evmc_vm
[src]
impl StructuralPartialEq for evmc_vm
[src]
Auto Trait Implementations
impl RefUnwindSafe for evmc_vm
impl !Send for evmc_vm
impl !Sync for evmc_vm
impl Unpin for evmc_vm
impl UnwindSafe for evmc_vm
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,