pub trait MessageType: Serialize + DeserializeOwned {
    const MESSAGE_META: MessageMeta;
}
Expand description

Represents a message type that can be sent between scripts or from the engine. The MessageType::MESSAGE_META constant should return a globally unique message meta for the message type.

Required Associated Constants§

source

const MESSAGE_META: MessageMeta

The metadata for the message type.

Object Safety§

This trait is not object safe.

Implementors§