wasmtime

Trait CallHookHandler

Source
pub trait CallHookHandler<T>: Send {
    // Required method
    fn handle_call_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        t: StoreContextMut<'life1, T>,
        ch: CallHook,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Available on crate features async and call-hook and runtime only.
Expand description

An object that can take callbacks when the runtime enters or exits hostcalls.

Required Methods§

Source

fn handle_call_event<'life0, 'life1, 'async_trait>( &'life0 self, t: StoreContextMut<'life1, T>, ch: CallHook, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

A callback to run when wasmtime is about to enter a host call, or when about to exit the hostcall.

Implementors§