Module callback

Source
Expand description

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

Macros§

callback
creates a Callback instance by inspecting a given closure signature

Structs§

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

Enums§

CallbackError
Errors produced by the callback module

Traits§

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

Type Aliases§

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