pub trait ModuleMiddlewareChain {
fn generate_function_middleware_chain(
&self,
local_function_index: LocalFunctionIndex
) -> Vec<Box<dyn FunctionMiddleware>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
;
fn apply_on_module_info(&self, module_info: &mut ModuleInfo);
}
Expand description
Trait for generating middleware chains from “prototype” (generator) chains.
Required methods
fn generate_function_middleware_chain(
&self,
local_function_index: LocalFunctionIndex
) -> Vec<Box<dyn FunctionMiddleware>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn generate_function_middleware_chain(
&self,
local_function_index: LocalFunctionIndex
) -> Vec<Box<dyn FunctionMiddleware>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Generates a function middleware chain.
fn apply_on_module_info(&self, module_info: &mut ModuleInfo)
fn apply_on_module_info(&self, module_info: &mut ModuleInfo)
Applies the chain on a ModuleInfo
struct.
Implementations on Foreign Types
sourceimpl<T: Deref<Target = dyn ModuleMiddleware>> ModuleMiddlewareChain for [T]
impl<T: Deref<Target = dyn ModuleMiddleware>> ModuleMiddlewareChain for [T]
sourcefn generate_function_middleware_chain(
&self,
local_function_index: LocalFunctionIndex
) -> Vec<Box<dyn FunctionMiddleware>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn generate_function_middleware_chain(
&self,
local_function_index: LocalFunctionIndex
) -> Vec<Box<dyn FunctionMiddleware>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Generates a function middleware chain.
sourcefn apply_on_module_info(&self, module_info: &mut ModuleInfo)
fn apply_on_module_info(&self, module_info: &mut ModuleInfo)
Applies the chain on a ModuleInfo
struct.