Trait ffi_utils::callback::Callback [] [src]

pub trait Callback {
    type Args: CallbackArgs;
    fn call(&self, user_data: *mut c_void, error: FfiResult, args: Self::Args);
}

This trait allows us to treat callbacks with different number and type of arguments uniformly.

Associated Types

Arguments for the callback. Should be a tuple.

Required Methods

Call the callback, passing the user data pointer, error code and any additional arguments.

Implementors