pub fn catch_unwind_cb<'a, U, C, F, E>(user_data: U, cb: C, f: F)where U: Into<*mut c_void>, C: Callback + Copy, F: FnOnce() -> Result<(), E>, E: Debug + Display + ErrorCode + From<&'a str>,
Catch panics. On error call the callback.