[−][src]Function sn_ffi_utils::catch_unwind_result
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>,
Catches panics and returns the result.
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>,
Catches panics and returns the result.