Module ebus_reply

Data Types

reply()

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:

Function Index

from_map/1
new/0Equivalent to new(nil).
new/1Equivalent to new(Topic, nil).
new/2Equivalent to new(Topic, Status, nil).
new/3Equivalent to new(Topic, Status, Payload, nil).
new/4

Function Details

from_map/1

from_map(Map::map()) -> reply()

new/0

new() -> any()

Equivalent to new(nil).

new/1

new(Topic) -> any()

Equivalent to new(Topic, nil).

new/2

new(Topic, Status) -> any()

Equivalent to new(Topic, Status, nil).

new/3

new(Topic, Status, Payload) -> any()

Equivalent to new(Topic, Status, Payload, nil).

new/4

new(Topic::binary() | nil, Status::atom(), Payload::term(), Ref::binary() | nil) -> reply()


Generated by EDoc