Trait lotus_script::message::MessageType

source ·
pub trait MessageType: Serialize + DeserializeOwned {
    // Required method
    fn id() -> &'static str;
}
Expand description

Represents a message type that can be sent between scripts or from the engine. The MessageType::id method should return a globally unique identifier for the message type. If in doubt, use a UUID.

Required Methods§

source

fn id() -> &'static str

The identifier for the message type.

Object Safety§

This trait is not object safe.

Implementors§