[][src]Enum wasmtime_runtime::Export

pub enum Export {
    Function {
        address: *const VMFunctionBody,
        vmctx: *mut VMContext,
        signature: Signature,
    },
    Table {
        definition: *mut VMTableDefinition,
        vmctx: *mut VMContext,
        table: TablePlan,
    },
    Memory {
        definition: *mut VMMemoryDefinition,
        vmctx: *mut VMContext,
        memory: MemoryPlan,
    },
    Global {
        definition: *mut VMGlobalDefinition,
        vmctx: *mut VMContext,
        global: Global,
    },
}

The value of an export passed from one instance to another.

Variants

Function

A function export value.

Fields of Function

address: *const VMFunctionBody

The address of the native-code function.

vmctx: *mut VMContext

Pointer to the containing VMContext.

signature: Signature

The function signature declaration, used for compatibilty checking.

Table

A table export value.

Fields of Table

definition: *mut VMTableDefinition

The address of the table descriptor.

vmctx: *mut VMContext

Pointer to the containing VMContext.

table: TablePlan

The table declaration, used for compatibilty checking.

Memory

A memory export value.

Fields of Memory

definition: *mut VMMemoryDefinition

The address of the memory descriptor.

vmctx: *mut VMContext

Pointer to the containing VMContext.

memory: MemoryPlan

The memory declaration, used for compatibilty checking.

Global

A global export value.

Fields of Global

definition: *mut VMGlobalDefinition

The address of the global storage.

vmctx: *mut VMContext

Pointer to the containing VMContext.

global: Global

The global declaration, used for compatibilty checking.

Methods

impl Export[src]

pub fn function(
    address: *const VMFunctionBody,
    vmctx: *mut VMContext,
    signature: Signature
) -> Self
[src]

Construct a function export value.

pub fn table(
    definition: *mut VMTableDefinition,
    vmctx: *mut VMContext,
    table: TablePlan
) -> Self
[src]

Construct a table export value.

pub fn memory(
    definition: *mut VMMemoryDefinition,
    vmctx: *mut VMContext,
    memory: MemoryPlan
) -> Self
[src]

Construct a memory export value.

pub fn global(
    definition: *mut VMGlobalDefinition,
    vmctx: *mut VMContext,
    global: Global
) -> Self
[src]

Construct a global export value.

Trait Implementations

impl Clone for Export[src]

impl Debug for Export[src]

Auto Trait Implementations

impl RefUnwindSafe for Export

impl !Send for Export

impl !Sync for Export

impl Unpin for Export

impl UnwindSafe for Export

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> Same<T> for T

type Output = T

Should always be Self

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.