rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::asio::forwarder_t< Actor, Handler, details::count::_0, ErrHandler > Struct Template Reference

dispatches single boost::asio callback with error_code and non-error results into two different functions of the actor. After the invocation, actor's supervisor do_process method is called to process message queue. More...

#include <forwarder.hpp>

Inheritance diagram for rotor::asio::forwarder_t< Actor, Handler, details::count::_0, ErrHandler >:
rotor::asio::forwarder_base_t< Actor, Handler, ErrHandler >

Public Types

using base_t = forwarder_base_t< Actor, Handler, ErrHandler >
 alias for base class
 
using base_t = forwarder_base_t< Actor, Handler, void >
 alias for base class
 
- Public Types inherited from rotor::asio::forwarder_base_t< Actor, Handler, ErrHandler >
using base_t = forwarder_base_t< Actor, Handler, void >
 alias for base class
 

Public Member Functions

template<typename T = void>
void operator() (const boost::system::error_code &ec) noexcept
 mimics boost::asio handler, which will be forwarded/decomposed into two different methods of the actor
 
- Public Member Functions inherited from rotor::asio::forwarder_base_t< Actor, Handler, ErrHandler >
 forwarder_base_t (Actor &actor_, Handler &&handler_, ErrHandler &&err_handler_)
 constructs forwarder_base for the actor from it's member functions: positive result handler and error handler functions.
 

Additional Inherited Members

- Public Attributes inherited from rotor::asio::forwarder_base_t< Actor, Handler, ErrHandler >
ErrHandler err_handler
 

Detailed Description

template<typename Actor, typename Handler, typename ErrHandler>
struct rotor::asio::forwarder_t< Actor, Handler, details::count::_0, ErrHandler >

dispatches single boost::asio callback with error_code and non-error results into two different functions of the actor. After the invocation, actor's supervisor do_process method is called to process message queue.

The invocation is strand-aware.


The documentation for this struct was generated from the following file: