NativeStoreExt

Trait NativeStoreExt 

Source
pub trait NativeStoreExt {
    // Required methods
    fn set_trap_handler(
        &mut self,
        handler: Option<Box<dyn Fn(i32, *const siginfo_t, *const c_void) -> bool + Sync + Send>>,
    );
    fn signal_handler(
        &self,
    ) -> Option<*const dyn Fn(i32, *const siginfo_t, *const c_void) -> bool + Sync + Send>;
}
Expand description

The custom trait to access to all the sys functions in the Store.

Required Methods§

Source

fn set_trap_handler( &mut self, handler: Option<Box<dyn Fn(i32, *const siginfo_t, *const c_void) -> bool + Sync + Send>>, )

Sets the trap handler

Source

fn signal_handler( &self, ) -> Option<*const dyn Fn(i32, *const siginfo_t, *const c_void) -> bool + Sync + Send>

The signal handler

Implementors§

Source§

impl NativeStoreExt for cardinal_wasm_plugins::wasmer::Store

Source§

impl NativeStoreExt for cardinal_wasm_plugins::wasmer::sys::store::Store