Function tauriless_serde::js_value_to_vec_u8
source · pub fn js_value_to_vec_u8(js_value: JsValue) -> Result<Vec<u8>, JsValue>
Expand description
A function for tauriless-js
to deserialize a wasm_bindgen::JsValue
into a Vec<u8>
that represents it.
This function exists to allow the tauriless-js
WASM module to efficiently send a wasm_bindgen::JsValue
to the custom protocol handler in wry
.