Skip to main content

ffi_error

Macro ffi_error 

Source
macro_rules! ffi_error {
    ($err:expr) => { ... };
}
Expand description

Convert an error into a pair of (error_code: i32, description: String) to be used in NativeResult.

The error must implement Debug + Display.