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

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.

Aliased Type§

enum Dart_NativeMessageHandler {
    None,
    Some(unsafe extern "C" fn(_: i64, _: *mut _Dart_CObject)),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(_: i64, _: *mut _Dart_CObject))

Some value of type T.