Struct wasmer_vm::VMContext[][src]

#[repr(C, align(16))]pub struct VMContext {}

The VM "context", which is pointed to by the vmctx arg in the compiler. This has information about globals, memories, tables, and other runtime state associated with the current instance.

The struct here is empty, as the sizes of these fields are dynamic, and we can't describe them in Rust's type system. Sufficient memory is allocated at runtime.

TODO: We could move the globals into the vmctx allocation too.

Implementations

impl VMContext[src]

pub unsafe fn host_state(&self) -> &dyn Any[src]

Return a reference to the host state associated with this Instance.

Safety

This is unsafe because it doesn't work on just any VMContext, it must be a VMContext allocated as part of an Instance.

Trait Implementations

impl Debug for VMContext[src]

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