Struct wasmer_runtime_near::StreamingCompiler [−][src]
pub struct StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain, { /* fields omitted */ }
Expand description
A streaming compiler which is designed to generated code for a module based on a stream of wasm parser events.
Implementations
impl<MCG, FCG, RM, E, CGEN> StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain,
impl<MCG, FCG, RM, E, CGEN> StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain,
Create a new StreamingCompiler
with the given MiddlewareChain
.
Trait Implementations
impl<MCG, FCG, RM, E, CGEN> Compiler for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain,
impl<MCG, FCG, RM, E, CGEN> Compiler for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
E: Debug,
MCG: ModuleCodeGenerator<FCG, RM, E>,
FCG: FunctionCodeGenerator<E>,
RM: 'static + RunnableModule,
CGEN: Fn() -> MiddlewareChain,
pub fn compile(
&self,
wasm: &[u8],
compiler_config: CompilerConfig,
Token
) -> Result<ModuleInner, CompileError>
pub fn compile(
&self,
wasm: &[u8],
compiler_config: CompilerConfig,
Token
) -> Result<ModuleInner, CompileError>
Compiles a Module
from WebAssembly binary format.
The CompileToken
parameter ensures that this can only
be called from inside the runtime. Read more
pub unsafe fn from_cache(
&self,
artifact: Artifact,
token: Token
) -> Result<ModuleInner, Error>
Auto Trait Implementations
impl<MCG, FCG, RM, E, CGEN> RefUnwindSafe for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
CGEN: RefUnwindSafe,
E: RefUnwindSafe,
FCG: RefUnwindSafe,
MCG: RefUnwindSafe,
RM: RefUnwindSafe,
impl<MCG, FCG, RM, E, CGEN> Send for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
CGEN: Send,
E: Send,
FCG: Send,
MCG: Send,
impl<MCG, FCG, RM, E, CGEN> Sync for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
CGEN: Sync,
E: Sync,
FCG: Sync,
MCG: Sync,
impl<MCG, FCG, RM, E, CGEN> Unpin for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
CGEN: Unpin,
E: Unpin,
FCG: Unpin,
MCG: Unpin,
RM: Unpin,
impl<MCG, FCG, RM, E, CGEN> UnwindSafe for StreamingCompiler<MCG, FCG, RM, E, CGEN> where
CGEN: UnwindSafe,
E: UnwindSafe,
FCG: UnwindSafe,
MCG: UnwindSafe,
RM: UnwindSafe,