Skip to main content

MessageType

Trait MessageType 

Source
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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§