Function sn_ffi_utils::catch_unwind_result [−][src]
pub fn catch_unwind_result<'a, F, T, E>(f: F) -> Result<T, E> where
F: FnOnce() -> Result<T, E>,
E: Debug + From<&'a str>,
Expand description
Catches panics and returns the result.