Struct wasmer_vm::VMDynamicFunctionContext[][src]

#[repr(C)]
pub struct VMDynamicFunctionContext<T: Sized + Send + Sync> { pub address: *const VMFunctionBody, pub ctx: T, }
Expand description

The VMDynamicFunctionContext is the context that dynamic functions will receive when called (rather than vmctx). A dynamic function is a function for which we don’t know the signature until runtime.

As such, we need to expose the dynamic function context containing the relevant context for running the function indicated in address.

Fields

address: *const VMFunctionBody

The address of the inner dynamic function.

Note: The function must be on the form of (*mut T, SignatureIndex, *mut i128).

ctx: T

The context that the inner dynamic function will receive.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

The archived version of the pointer metadata for this type.

Converts some archived metadata to the pointer metadata for itself.

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type for metadata in pointers and references to Self.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.