rotor
Event loop friendly C++ actor micro-framework
Loading...
Searching...
No Matches
rotor::asio::system_context_asio_t Struct Reference

The boost::asio system context, which holds a reference to boost::asio::io_context and root supervisor. More...

#include <system_context_asio.h>

Inheritance diagram for rotor::asio::system_context_asio_t:
rotor::system_context_t

Public Types

using ptr_t = rotor::intrusive_ptr_t<system_context_asio_t>
 intrusive pointer type for boost::asio system context

Public Member Functions

 system_context_asio_t (asio::io_context &io_context_)
 construct the context from boost::asio::io_context reference
asio::io_context & get_io_context () noexcept
 returns a reference to boost::asio::io_context
Public Member Functions inherited from rotor::system_context_t
template<typename Supervisor = supervisor_t>
auto create_supervisor ()
 returns builder for root supervisor
supervisor_ptr_t get_supervisor () noexcept
 returns root supervisor
 system_context_t (const system_context_t &)=delete
 system_context_t (system_context_t &&)=delete
virtual void on_error (actor_base_t *actor, const extended_error_ptr_t &ec) noexcept
 fatal error handler
virtual std::string identity () noexcept
 identifies the context.
template<typename T>
auto & access () noexcept
 generic non-public fields accessor
const message_stringifier_tget_stringifier ()
 returns the default stringifier

Protected Attributes

asio::io_context & io_context
 a reference to boost::asio::io_context

Friends

struct supervisor_asio_t

Additional Inherited Members

Protected Member Functions inherited from rotor::system_context_t
virtual message_stringifier_ptr_t make_stringifier () const noexcept
 constructs message stringifier

Detailed Description

The boost::asio system context, which holds a reference to boost::asio::io_context and root supervisor.


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