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 the transformCallback
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 the success_callback
function name and the argument will be the Ok value.
If the Result is_err()
, the callback will be the error_callback
function name and the argument will be the Err value.Transforms & escapes a JSON value.
Transforms & escapes a JSON value.