[][src]Struct wasmer_engine_jit::JITEngine

pub struct JITEngine { /* fields omitted */ }

A WebAssembly JIT Engine.

Implementations

impl JITEngine[src]

pub fn headless() -> Self[src]

Create a headless JITEngine

A headless engine is an engine without any compiler attached. This is useful for assuring a minimal runtime for running WebAssembly modules.

For example, for running in IoT devices where compilers are very expensive, or also to optimize startup speed.

Important

Headless engines can't compile or validate any modules, they just take already processed Modules (via Module::serialize).

Trait Implementations

impl Clone for JITEngine[src]

impl Engine for JITEngine[src]

fn target(&self) -> &Target[src]

The target

fn register_signature(&self, func_type: &FunctionType) -> VMSharedSignatureIndex[src]

Register a signature

fn lookup_signature(&self, sig: VMSharedSignatureIndex) -> Option<FunctionType>[src]

Lookup a signature

fn function_call_trampoline(
    &self,
    sig: VMSharedSignatureIndex
) -> Option<VMTrampoline>
[src]

Retrieves a trampoline given a signature

fn validate(&self, binary: &[u8]) -> Result<(), CompileError>[src]

Validates a WebAssembly module

fn compile(
    &self,
    _binary: &[u8],
    _tunables: &dyn Tunables
) -> Result<Arc<dyn Artifact>, CompileError>
[src]

Compile a WebAssembly binary

unsafe fn deserialize(
    &self,
    bytes: &[u8]
) -> Result<Arc<dyn Artifact>, DeserializeError>
[src]

Deserializes a WebAssembly module

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