Struct wasmer_vm::VMExportFunction[][src]

pub struct VMExportFunction {
    pub address: *const VMFunctionBody,
    pub vmctx: VMFunctionEnvironment,
    pub signature: FunctionType,
    pub kind: VMFunctionKind,
    pub call_trampoline: Option<VMTrampoline>,
    pub instance_ref: Option<InstanceRef>,
}

A function export value.

Fields

address: *const VMFunctionBody

The address of the native-code function.

vmctx: VMFunctionEnvironment

Pointer to the containing VMContext.

signature: FunctionType

The function type, used for compatibility checking.

kind: VMFunctionKind

The function kind (specifies the calling convention for the function).

call_trampoline: Option<VMTrampoline>

Address of the function call trampoline owned by the same VMContext that owns the VMFunctionBody.

May be None when the function is a host function (FunctionType == Dynamic or vmctx == nullptr).

instance_ref: Option<InstanceRef>

A “reference” to the instance through the InstanceRef. None if it is a host function.

Trait Implementations

impl Clone for VMExportFunction[src]

impl Debug for VMExportFunction[src]

impl From<VMExportFunction> for VMExport[src]

impl PartialEq<VMExportFunction> for VMExportFunction[src]

impl Send for VMExportFunction[src]

Safety

There is no non-threadsafe logic directly in this type. Calling the function may not be threadsafe.

impl StructuralPartialEq for VMExportFunction[src]

impl Sync for VMExportFunction[src]

Safety

The members of an VMExportFunction are immutable after construction.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.