pub trait CallHookHandler<T>: Send {
    fn handle_call_event<'life0, 'life1, 'async_trait>(
        &'life0 self,
        t: &'life1 mut T,
        ch: CallHook
    ) -> Pin<Box<dyn Future<Output = Result<(), Trap>> + Send + 'async_trait>>
    where
        'life0: 'async_trait,
        'life1: 'async_trait,
        Self: 'async_trait
; }
Expand description

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

Required Methods

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

Implementors