[][src]Struct wasmer_vm::VMDynamicFunctionContext

#[repr(C)]pub struct VMDynamicFunctionContext<T: Sized + Send + Sync> {
    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.

Trait Implementations

impl<T: Sized + Clone + Send + Sync> Clone for VMDynamicFunctionContext<T>[src]

impl<T: Sized + Send + Sync> Send for VMDynamicFunctionContext<T>[src]

impl<T: Sized + Send + Sync> Sync for VMDynamicFunctionContext<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for VMDynamicFunctionContext<T> where
    T: RefUnwindSafe
[src]

impl<T> Unpin for VMDynamicFunctionContext<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for VMDynamicFunctionContext<T> where
    T: UnwindSafe
[src]

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.