Function convert_result

Source
pub fn convert_result<T, E: Error + Send + Sync + 'static>(
    result: Result<T, E>,
) -> Result<T, Error>
Expand description

Convert a Result into one that will not cause a panic when called inside [uniffi::custom_type!]. It is required that all the results created inside a custom_type! are converted using this function.