[][src]Struct wasmer_vm::VMDynamicFunctionContext

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

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.

Auto Trait Implementations

impl<T> RefUnwindSafe for VMDynamicFunctionContext<T> where
    T: RefUnwindSafe

impl<T> !Send for VMDynamicFunctionContext<T>

impl<T> !Sync for VMDynamicFunctionContext<T>

impl<T> Unpin for VMDynamicFunctionContext<T> where
    T: Unpin

impl<T> UnwindSafe for VMDynamicFunctionContext<T> where
    T: UnwindSafe

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, 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.