pub fn serialize_to_vec_u8<T>(value: &T) -> Result<Vec<u8>, Error>
where T: Serialize,
Expand description

A function for the custom protocol handler to serialize a value implementing serde::Serialize into a Vec<u8>.

This function exists to allow the custom protocol handler to serialize the result of the command-function into a Vec<u8> to be sent back to the WebView process as a response.