tauri_sys::tauri

Function transform_callback

source
pub async fn transform_callback<T: DeserializeOwned>(
    callback: &dyn Fn(T),
    once: bool,
) -> Result<f64, Error>
Expand description

Transforms a callback function to a string identifier that can be passed to the backend.

The backend uses the identifier to eval() the callback.

@return A unique identifier associated with the callback function.