[−][src]Struct wasmer_engine_jit::JITEngine
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]
pub fn target(&self) -> &Target
[src]
The target
pub fn register_signature(
&self,
func_type: &FunctionType
) -> VMSharedSignatureIndex
[src]
&self,
func_type: &FunctionType
) -> VMSharedSignatureIndex
Register a signature
pub fn lookup_signature(
&self,
sig: VMSharedSignatureIndex
) -> Option<FunctionType>
[src]
&self,
sig: VMSharedSignatureIndex
) -> Option<FunctionType>
Lookup a signature
pub fn validate(&self, binary: &[u8]) -> Result<(), CompileError>
[src]
Validates a WebAssembly module
pub fn compile(
&self,
_binary: &[u8],
_tunables: &dyn Tunables
) -> Result<Arc<dyn Artifact>, CompileError>
[src]
&self,
_binary: &[u8],
_tunables: &dyn Tunables
) -> Result<Arc<dyn Artifact>, CompileError>
Compile a WebAssembly binary
pub unsafe fn deserialize(
&self,
bytes: &[u8]
) -> Result<Arc<dyn Artifact>, DeserializeError>
[src]
&self,
bytes: &[u8]
) -> Result<Arc<dyn Artifact>, DeserializeError>
Deserializes a WebAssembly module
pub fn id(&self) -> &EngineId
[src]
pub fn cloned(&self) -> Arc<dyn Engine + Send + Sync>
[src]
pub unsafe fn deserialize_from_file(
&self,
file_ref: &Path
) -> Result<Arc<dyn Artifact + 'static>, DeserializeError>
[src]
&self,
file_ref: &Path
) -> Result<Arc<dyn Artifact + 'static>, DeserializeError>
Auto Trait Implementations
impl RefUnwindSafe for JITEngine
[src]
impl Send for JITEngine
[src]
impl Sync for JITEngine
[src]
impl Unpin for JITEngine
[src]
impl UnwindSafe for JITEngine
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,