Trait CallHookHandler
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<(), Error>> + 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§
fn handle_call_event<'life0, 'life1, 'async_trait>(
&'life0 self,
t: StoreContextMut<'life1, T>,
ch: CallHook,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn handle_call_event<'life0, 'life1, 'async_trait>(
&'life0 self,
t: StoreContextMut<'life1, T>,
ch: CallHook,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
A callback to run when wasmtime is about to enter a host call, or when about to exit the hostcall.