[][src]Struct wasmer_runtime::Instance

pub struct Instance {
    pub module: Rc<ModuleInner>,
    // some fields omitted
}

A WebAssembly instance

Fields

module: Rc<ModuleInner>

Methods

impl Instance
[src]

pub fn call(
    &mut self,
    name: &str,
    args: &[Value]
) -> Result<Vec<Value>, Box<CallError>>
[src]

Call an exported webassembly function given the export name. Pass arguments by wrapping each one in the Value enum. The returned values are also each wrapped in a Value.

This returns CallResult<Vec<Value>> in order to support the future multi-value returns webassembly feature.

Important traits for ExportIter<'a>
pub fn exports(&mut self) -> ExportIter
[src]

pub fn module(&self) -> Module
[src]

impl Instance
[src]

pub fn memory_offset_addr(&self, _index: usize, _offset: usize) -> *const u8
[src]

Trait Implementations

impl LikeNamespace for Instance
[src]

Auto Trait Implementations

impl !Send for Instance

impl !Sync for Instance

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

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

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]