Function ffi_utils::catch_unwind_error_code [] [src]

pub fn catch_unwind_error_code<'a, F, E>(f: F) -> i32 where
    F: FnOnce() -> Result<(), E>,
    E: Debug + ErrorCode + From<&'a str>, 

Catch panics. On error return the error code.