reply() = #{topic => binary() | nil, status => atom(), payload => term(), ref => binary() | nil, ebus_t => reply}
Defines a reply sent from channels to transports. The message format requires the following keys:
topic
: The binary topic or topic:subtopic` pair namespace,
for example `<<"messages">>
, <<"messages:123">>
.status
: The reply status as an atom.payload
: The message payload.ref
: The unique binary ref.from_map/1 | |
new/0 | Equivalent to new(nil). |
new/1 | Equivalent to new(Topic, nil). |
new/2 | Equivalent to new(Topic, Status, nil). |
new/3 | Equivalent to new(Topic, Status, Payload, nil). |
new/4 |
from_map(Map::map()) -> reply()
new() -> any()
Equivalent to new(nil).
new(Topic) -> any()
Equivalent to new(Topic, nil).
new(Topic, Status) -> any()
Equivalent to new(Topic, Status, nil).
new(Topic, Status, Payload) -> any()
Equivalent to new(Topic, Status, Payload, nil).
new(Topic::binary() | nil, Status::atom(), Payload::term(), Ref::binary() | nil) -> reply()
Generated by EDoc