rotor
Event loop friendly C++ actor micro-framework
 
Loading...
Searching...
No Matches
rotor::handler_traits< void(A::*)(M &) noexcept > Struct Template Reference

Helper class to extract final actor class and message type from pointer-to-member function. More...

#include <handler.h>

Public Types

using message_t = M
 message type, processed by the handler
 
using payload_t = typename M::payload_t
 alias for message type payload
 
using backend_t = A
 alias for Actor or Plugin class
 

Static Public Attributes

static auto const constexpr has_valid_message = std::is_base_of_v<message_base_t, M>
 returns true if message is valid
 
static auto const constexpr is_actor = std::is_base_of_v<actor_base_t, A>
 returns true if handler belongs to actor
 
static auto const constexpr is_plugin = std::is_base_of_v<plugin::plugin_base_t, A>
 returns true if handler belongs to plugin
 
static auto const constexpr is_lambda = false
 returns true if it is lambda-handler
 

Detailed Description

template<typename A, typename M>
struct rotor::handler_traits< void(A::*)(M &) noexcept >

Helper class to extract final actor class and message type from pointer-to-member function.


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