Module workflow_wasm::callback

source ·
Expand description

callback module provides Callback struct that helps registering Rust closures as JavaScript callbacks.

Macros

creates a Callback instance by inspecting a given closure signature

Structs

Callback is a struct that owns a given Rust closure meant to be bound to JavaScript as a callback.
Collection of callbacks contained in a std::collections::HashMap.

Enums

Errors produced by the callback module

Traits

Trait allowing to bind a generic Callback struct with a CallbackId identifier.

Type Definitions

Callback Closure that produces a wasm_bindgen::JsValue error
Callback Closure that yields no std::result::Result
u64-based Callback Id (alias of workflow_core::id::Id).