Trait lotus_script::prelude::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§
sourceconst MESSAGE_META: MessageMeta
const MESSAGE_META: MessageMeta
The metadata for the message type.
Object Safety§
This trait is not object safe.