Trait wasmtime::CallHookHandler

source ·
pub trait CallHookHandler<T>: Send {
    // Required method
    fn handle_call_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        t: &'life1 mut 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 runtime and async 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: &'life1 mut 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§