Membrane Core v0.1.1 Membrane.Message View Source

Structure representing a single message that is emitted by the element.

Each message:

  • must contain type,
  • may contain payload.

Type is used to distinguish message class.

Payload can hold additional information about the message.

Payload should always be a named struct appropriate for given message type.

Link to this section Summary

Link to this section Types

Link to this type payload_t() View Source
payload_t() :: struct()
Link to this type t() View Source
t() :: %Membrane.Message{payload: payload_t(), type: type_t()}