wasmtime_wasi::preview1::wasi_snapshot_preview1

Function add_to_linker

source
pub fn add_to_linker<T, U>(
    linker: &mut Linker<T>,
    get_cx: impl Fn(&mut T) -> &mut U + Send + Sync + Copy + 'static,
) -> Result<()>
Available on crate feature preview1 only.
Expand description

Adds all instance items to the specified Linker.