wasmtime::unix

Trait StoreExt

Source
pub trait StoreExt {
    // Required method
    unsafe fn set_signal_handler<H>(&mut self, handler: H)
       where H: 'static + Fn(c_int, *const siginfo_t, *const c_void) -> bool + Send + Sync;
}
Available on crate feature runtime only.
Expand description

Extensions for the Store type only available on Unix.

Required Methods§

Source

unsafe fn set_signal_handler<H>(&mut self, handler: H)
where H: 'static + Fn(c_int, *const siginfo_t, *const c_void) -> bool + Send + Sync,

Available on crate feature signals-based-traps only.

The signal handler must be async-signal-safe.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> StoreExt for Store<T>