[][src]Trait wasmer_runtime_core_asml_fork::codegen::FunctionMiddleware

pub trait FunctionMiddleware {
    type Error: Debug;
    fn feed_event<'a, 'b: 'a>(
        &mut self,
        op: Event<'a, 'b>,
        module_info: &ModuleInfo,
        sink: &mut EventSink<'a, 'b>,
        source_loc: u32
    ) -> Result<(), Self::Error>; }

A trait that represents the signature required to implement middleware for a function.

Associated Types

type Error: Debug

The error type for this middleware's functions.

Loading content...

Required methods

fn feed_event<'a, 'b: 'a>(
    &mut self,
    op: Event<'a, 'b>,
    module_info: &ModuleInfo,
    sink: &mut EventSink<'a, 'b>,
    source_loc: u32
) -> Result<(), Self::Error>

Processes the given event, module info and sink.

Loading content...

Implementors

Loading content...