Module message

Module message 

Source

Structs§

BatterySwitch
Represents the state of the battery switch.
ButtonEvent
Represents a button press or release event in the cockpit.
Message
Represents a message that can be sent between scripts or from the engine.
MessageMeta
Represents the metadata for a message type.
MessageSource
Represents the source of a message.
SerializationError
TriggerEvent
Represents an event triggered by a sensor in the system.

Enums§

Coupling
MessageHandleError
MessageTarget
Represents a message target.
MessageValueError
TriggerKind
Represents the type of trigger event that occurred.

Traits§

IntoMessageTargets
MessageType
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.

Functions§

send_message
Sends the message to the given targets.