[][src]Function dart_sys::Dart_RegisterIsolateServiceRequestCallback

pub unsafe extern "C" fn Dart_RegisterIsolateServiceRequestCallback(
    method: *const c_char,
    callback: Dart_ServiceRequestCallback,
    user_data: *mut c_void
)

Register a Dart_ServiceRequestCallback to be called to handle requests for the named rpc on a specific isolate. The callback will be invoked with the current isolate set to the request target.

\param method The name of the method that this callback is responsible for. \param callback The callback to invoke. \param user_data The user data passed to the callback.

NOTE: If multiple callbacks with the same name are registered, only the last callback registered will be remembered.