Expand description
Types and functions related to Inter Procedure Call(IPC).
This module includes utilities to send messages to the JS layer of the webview.
Structs§
- The
Callback
type is the return value of thetransformCallback
JavaScript function. - Optional settings to pass to the templating system.
Functions§
- Formats a function name and argument to be evaluated as callback.
- Formats a Result type to its Promise response. Useful for Promises handling. If the Result
is_ok()
, the callback will be thesuccess_callback
function name and the argument will be the Ok value. If the Resultis_err()
, the callback will be theerror_callback
function name and the argument will be the Err value. - Transforms & escapes a JSON value.
- Transforms & escapes a JSON value.