[][src]Trait wasmer::ModuleMiddleware

pub trait ModuleMiddleware: Send + Sync + Debug {
    pub fn generate_function_middleware(
        &self,
        local_function_index: LocalFunctionIndex
    ) -> Box<dyn FunctionMiddleware + 'static, Global>; pub fn transform_module_info(&self, &mut ModuleInfo) { ... } }

A shared builder for function middlewares.

Required methods

pub fn generate_function_middleware(
    &self,
    local_function_index: LocalFunctionIndex
) -> Box<dyn FunctionMiddleware + 'static, Global>
[src]

Generates a FunctionMiddleware for a given function.

Here we generate a separate object for each function instead of executing directly on per-function operators, in order to enable concurrent middleware application. Takes immutable &self because this function can be called concurrently from multiple compilation threads.

Loading content...

Provided methods

pub fn transform_module_info(&self, &mut ModuleInfo)[src]

Transforms a ModuleInfo struct in-place. This is called before application on functions begins.

Loading content...

Implementors

Loading content...