Skip to main content

AsyncCallback

Type Alias AsyncCallback 

Source
pub type AsyncCallback = unsafe extern "C" fn(status: i32, error: *mut c_char, user_data: *mut c_void);
Expand description

Callback that fires when a one-shot async operation completes.

status is the operation’s exit code (0 = ok, non-zero = error code). error is an optional NSError JSON payload (may be null on success).