C++ Actor Framework 0.18
|
Stream messages that travel downstream, i.e., batches and close messages. More...
#include <downstream_msg.hpp>
Public Types | |
using | batch = downstream_msg_batch |
using | close = downstream_msg_close |
using | forced_close = downstream_msg_forced_close |
using | alternatives = detail::type_list< batch, close, forced_close > |
Lists all possible options for the payload. | |
using | content_type = variant< batch, close, forced_close > |
Stores one of alternatives . | |
Public Member Functions | |
template<class T > | |
downstream_msg (stream_slots s, actor_addr addr, T &&x) | |
downstream_msg (downstream_msg &&)=default | |
downstream_msg (const downstream_msg &)=default | |
downstream_msg & | operator= (downstream_msg &&)=default |
downstream_msg & | operator= (const downstream_msg &)=default |
Public Attributes | |
stream_slots | slots |
ID of the affected stream. | |
actor_addr | sender |
Address of the sender. | |
content_type | content |
Palyoad of the message. | |
Related Functions | |
(Note that these are not member functions.) | |
template<class T , class... Ts> | |
detail::enable_if_tt< detail::tl_contains< downstream_msg::alternatives, T >, downstream_msg > | make (stream_slots slots, actor_addr addr, Ts &&... xs) |
template<class Inspector > | |
bool | inspect (Inspector &f, downstream_msg &x) |
Stream messages that travel downstream, i.e., batches and close messages.
actor_addr caf::downstream_msg::sender |
Address of the sender.
Identifies the up- or downstream actor sending this message. Note that abort messages can get send after sender
already terminated. Hence, current_sender()
can be nullptr
, because no strong pointers can be formed any more and receiver would receive an anonymous message.