View Source ebus_message (ebus v0.3.0)
Link to this section Summary
Functions
Equivalent to new(Topic, nil).
Equivalent to new(Topic, Event, nil).
Equivalent to new(Topic, Event, Payload, nil).
Link to this section Types
-type t() ::
#{topic => binary() | nil,
event => binary() | nil,
payload => term(),
ref => binary() | nil,
ebus_t => message}.
Link to this section Functions
-spec from_map(map()) -> t().
Equivalent to new(nil).
Equivalent to new(Topic, nil).
Equivalent to new(Topic, Event, nil).
Equivalent to new(Topic, Event, Payload, nil).
-spec new(binary() | nil, binary() | nil, term(), binary() | nil) -> t().