rotor
Event loop friendly C++ actor micro-framework
Loading...
Searching...
No Matches
rotor::wrapped_request_t< T, typename > Struct Template Reference

templated request, which is able to hold user-supplied payload More...

#include <request.hpp>

Inheritance diagram for rotor::wrapped_request_t< T, typename >:
rotor::request_base_t

Public Types

using request_t = T
 alias for original (unwrapped) request payload type
using response_t = typename T::response_t
 alias for original (unwrapped) response payload type

Public Member Functions

template<typename... Args>
 wrapped_request_t (request_id_t id_, const address_ptr_t &reply_to_, const address_ptr_t &origin_, Args &&...args)
 constructs wrapper for user-supplied payload from request-id and and destination reply address

Public Attributes

request_payload
 original, user-supplied payload
Public Attributes inherited from rotor::request_base_t
request_id_t id
 unique (per supervisor) request id
address_ptr_t reply_to
 destination address for reply
address_ptr_t origin
 the source (original) actor address, which made an request

Detailed Description

template<typename T, typename = void>
struct rotor::wrapped_request_t< T, typename >

templated request, which is able to hold user-supplied payload

It contains as user-supplied payload as well as rotor-specific information for request tracking (request_id, reply address).


The documentation for this struct was generated from the following file:
  • /home/b/development/cpp/cpp-rotor/include/rotor/request.hpp