[][src]Type Definition dart_sys::Dart_NativeMessageHandler

type Dart_NativeMessageHandler = Option<unsafe extern "C" fn(dest_port_id: Dart_Port, message: *mut Dart_CObject)>;

A native message handler.

This handler is associated with a native port by calling Dart_NewNativePort.

The message received is decoded into the message structure. The lifetime of the message data is controlled by the caller. All the data references from the message are allocated by the caller and will be reclaimed when returning to it.